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

}

]

}

相关推荐
GEO_ai_zhijian1 小时前
饮料生产线质量检测系统哪家好
大数据·人工智能·python
精神底层1 小时前
拒绝 UI 卡死!我用 CSnakes 实时拦截 Python 训练流,在 WPF 中重构了 ScottPlot 5 高性能 AI 看板
python·ui·wpf
尼恩久1 小时前
记录xls表格提取信息
python
工艺资源2 小时前
外贸工艺品设计参考平台众多,哪家专业值得了解
人工智能·python
无糖冰可乐212 小时前
安装wsl2,并链接Windows上的vscode运行项目
pytorch·vscode·python·pip
汤米粥2 小时前
Python爬虫中Xpath用法之——normalize-space()
开发语言·python
想会飞的蒲公英2 小时前
回归模型怎样评估:MAE、MSE、RMSE 和 R²
人工智能·python·机器学习·数据分析·回归
不负信仰2 小时前
Visual Studio 三月更新 —— 打造专属自定义 Agent
ide·visual studio