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

}

]

}

相关推荐
卷无止境3 分钟前
FastAPI 的可观测性进化,从打日志到看清整个系统的呼吸
后端·python·fastapi
卷无止境20 分钟前
FastAPI 的 CI/CD 之路,从代码提交到线上运行
后端·python·fastapi
2601_9623824322 分钟前
系统学习Python——单元测试unittest:执行测试用例(unit test python)
python·测试用例·测试框架·unittest·测试集合
小玮看世界30 分钟前
[Python]动态规划三步走:从爬楼梯到打家劫舍,再到最大子数组和
开发语言·python·动态规划
风萧萧199937 分钟前
JAVA :JSONObject转换为XML
xml·java·python
海拥✘38 分钟前
网页抓取 API 稳定性怎么测?用 Dataify 完成一次真实压测
python
databook39 分钟前
几何分布:从“等一个结果”开始
python·数据挖掘·数据分析
用户0332126663671 小时前
如何在 Python 环境中裁剪 PDF 页面
python
威联通网络存储1 小时前
TS-h2287XU-RP 在医药制造批记录与合规归档场景的部署
python·制造
蓝鸟19741 小时前
Python Flask + Oracle 接口开发 小白完整版笔记(入参/查库/批量/JSON/避坑)
python·oracle·flask