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

}

]

}

相关推荐
站大爷IP2 分钟前
Python装饰器实战:从入门到封装通用业务逻辑
python
小驰行动派5 分钟前
Android Studio中,使用完全免费的Ai来写APP
android·ide·android studio
湛生11 分钟前
django学习
数据库·后端·python·django·sqlite
极光代码工作室15 分钟前
基于机器学习的商品销量预测系统设计
人工智能·python·深度学习·机器学习
nimadan1231 分钟前
手机制作AI漫剧APP2025推荐,高效便捷创作体验
人工智能·python·智能手机
G果32 分钟前
ros2工程 debug(vscode)
c++·ide·vscode·编辑器·bug·debug·ros2
kronos.荒34 分钟前
柱状图中的最大矩形(python)
python·单调栈
学而要时习35 分钟前
强化学习:从“试错进化“到“推理革命
c语言·人工智能·python·语言模型
June bug35 分钟前
(Mac)docling-mcp 的依赖解析器找不到匹配的 torch 安装包
经验分享·python·macos
小陈工35 分钟前
2026年4月1日技术资讯洞察:AI芯片革命、数据库智能化与云原生演进
前端·数据库·人工智能·git·python·云原生·开源