vscode python 无法引入上层目录解决

在vscode 中.vscode 配置如下

{

// Use IntelliSense to learn about possible attributes.

// Hover to view descriptions of existing attributes.

// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387

"version": "0.2.0",

"configurations": [

{

"name": "Python: Current File",

"type": "python",

"request": "launch",

"program": " f i l e " , " c o n s o l e " : " i n t e g r a t e d T e r m i n a l " , " j u s t M y C o d e " : f a l s e , " c w d " : " {file}", "console": "integratedTerminal", "justMyCode": false, "cwd":" file","console":"integratedTerminal","justMyCode":false,"cwd":"{fileDirname}",

"env": {"PYTHONPATH": "${cwd}"}

}

]

}

相关推荐
砚底藏山河6 分钟前
量化回测可复现流水线CI化
java·python·ci/cd·金融
磁场转动100万匹7 分钟前
道路巡检系统检测案例:YOLOv5 + Flask + PyQt 全栈实现
python·yolo
techpupil30 分钟前
IDEA基础配置及开发基础插件
java·ide·intellij-idea
赵庆明老师30 分钟前
Android Studio Google源代理配置
android·ide·android studio
前端精髓1 小时前
动态选择工具
python·langchain
weixin199701080162 小时前
官方授权通道和灰色爬虫,做数据服务该选哪条路(附 python 源码)
c++·爬虫·python
Ryan-Zhong2 小时前
数字人口播视频 API 实战:Python 跑通模板合成、异步轮询与批量出片
开发语言·python·音视频
quantdash_cc2 小时前
个人开发者用 QuantDash 读取港股行情:00700.HK 的 Python 函数封装与校验实践
python·数据分析·pandas·量化交易·股票数据·quantdash
fengci.2 小时前
CTF2困难部分
开发语言·网络·python·安全·php