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

}

]

}

相关推荐
157092511341 分钟前
优先队列:从Java源码到实战
开发语言·python
Python私教26 分钟前
Django + AI 做智能工单系统:自动分类、重复合并、服务时限与人工审批实战
人工智能·python·django
qq_225891746628 分钟前
2026 计算机专业毕业设计选题推荐|Python 数据分析 / 可视化 / 推荐 / 预测(持续更新)
python·数据分析·课程设计
cui_ruicheng38 分钟前
Python数据分析(十一):数据可视化与 Matplotlib
python·信息可视化·数据分析·matplotlib
superrick44 分钟前
MCP 协议深度解析:AI Agent 的工具集成标准
python
淼澄研学1 小时前
Python自动化办公实操:基于pandas与requests的5个提效场景解析
python·自动化·pandas
薛少杰2 小时前
Python异步系统学习路线第59讲_核心原理与实战案例详解【技巧】
python·事件循环·异步编程·实战案例·协程调度
一次旅行2 小时前
fzf+ripgrep+fd终端三合一实战:一套检索工具链,大幅提升大型项目开发效率
人工智能·python·github
卷无止境2 小时前
当代码要上线前,谁在替你把关?——Python安全审查的方法论与实践
后端·python