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}"}

}

]

}

相关推荐
SteveRocket3 小时前
Python机器学习与数据分析教程之pandas
python·机器学习·数据分析
带土14 小时前
vscode json
vscode·json
bulucc5 小时前
一个简答的意图识别Agent
python·大模型·agent
Lizhihao_6 小时前
Python如何写Selenium全攻略
开发语言·python
m0_738120726 小时前
网络安全编程——TCP客户端以及服务端Python实现
python·tcp/ip·安全·web安全·网络安全
明道源码7 小时前
Android Studio 代码编辑区域的使用
android·ide·android studio
AntBlack7 小时前
不当韭菜 : 好像真有点效果 ,想藏起来自己用了
前端·后端·python
冷天气会感冒7 小时前
关闭VSCode的推荐插件(Recommended extensions)提示
ide·vscode·编辑器
百锦再7 小时前
破茧成蝶:全方位解析Java学习难点与征服之路
java·python·学习·struts·kafka·maven·intellij-idea