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

}

]

}

相关推荐
paeamecium15 分钟前
【PAT甲级真题】- Rational Sum (20)
数据结构·c++·python·算法·pat考试·pat
zhangjin11202 小时前
解决Android Studio gradle下载超时和缓慢问题(二)
android·ide·android studio
爱昏羔7 小时前
下篇:从检索到交互 — 物流RAG问答系统与WebUI全实现
python·langchain·agent
_Jimmy_7 小时前
Agent引用数据库知识过时的增量同步方案
人工智能·python·langchain
min(a,b)8 小时前
学习第 4 天:面向对象与异常处理
python·学习·学习方法
yangshicong10 小时前
第19章:AI安全防护与AI安全
人工智能·python·安全·prompt·ai编程
果汁华10 小时前
Function Calling 与 Python 实战完整指南
开发语言·网络·python
c_lb728810 小时前
2026年不同基础做量化,先找AI能参与的位置
人工智能·python
chenment12 小时前
ComfyUI 自定义节点开发:从零扩展你的图像生成工作流
python·stable diffusion
IT空门:门主12 小时前
Python 基础语法学习路线图
网络·python·学习