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

}

]

}

相关推荐
nuclear20112 分钟前
使用Python生成多种不同类型的Excel图表
python·excel图表·excel柱形图·excel条形图·excel饼图·excel瀑布图·excel旭日图
kuiini14 分钟前
python学习-08【正则表达式】
python·学习·正则表达式
u01037310637 分钟前
创建Django 项目
后端·python·django
DAIHAO丶42 分钟前
五、Django 路由配置
python·django
z are1 小时前
包含 Python 与 Jupyter的Anaconda的下载安装
开发语言·python·jupyter
冰淇淋烤布蕾1 小时前
git 你要如何打开这个文件
git·vscode·intellij-idea
傻啦嘿哟1 小时前
在Excel中通过Python运行公式和函数实现数据计算
开发语言·python·excel
使者大牙1 小时前
【PyTorch单点知识】深入了解 nn.ModuleList和 nn.ParameterList模块:灵活构建动态网络结构
人工智能·pytorch·python·深度学习
qh0526wy2 小时前
量化交易的个人见解
python
qq_426938482 小时前
git-fork操作指南
git·python