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

}

]

}

相关推荐
2601_967980115 小时前
python list如何赋值
python·list·列表推导式·赋值·切片赋值
典学长编程6 小时前
LangGraph 快速入门:从 StateGraph 到 ReAct Agent
python·有向图·无向图·langgraph·react agent·stategraph
用户019027581619 小时前
AlphaFeed 查不到代码返回空?非法/缺后缀 symbol 的行为与处理
python
isfox9 小时前
Python 单元测试:别再用 print 调试了,写个测试一劳永逸
python
用户298698530149 小时前
在 Python 中把 Word 文档转换为 JSON 的三种实现方式
python·json·api
用户03321266636710 小时前
使用 Python 删除 Excel 中的空白行或空白列
python·excel
databook10 小时前
时间序列特征,哪些当时就能算出来
python·数据分析
kevin_org10 小时前
LangChain入门学习(四)
python·学习·langchain·fastapi
顧棟11 小时前
组件生命周期设计:从硬编码初始化到状态机
java·ide
特立独行的猫A19 小时前
别再用 nohup 了:让应用在后台常驻的正确姿势与 systemd 服务详解
java·后端·python