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

}

]

}

相关推荐
weixin_307779131 小时前
Azure上基于OpenAI GPT-4模型验证行政区域数据的设计方案
数据仓库·python·云计算·aws
玩电脑的辣条哥2 小时前
Python如何播放本地音乐并在web页面播放
开发语言·前端·python
多想和从前一样4 小时前
Django 创建表时 “__str__ ”方法的使用
后端·python·django
小喵要摸鱼6 小时前
【Pytorch 库】自定义数据集相关的类
pytorch·python
梦幻通灵6 小时前
IDEA通过Contince接入Deepseek
java·ide·intellij-idea
bdawn6 小时前
深度集成DeepSeek大模型:WebSocket流式聊天实现
python·websocket·openai·api·实时聊天·deepseek大模型·流式输出
Jackson@ML6 小时前
Python数据可视化简介
开发语言·python·数据可视化
mosquito_lover16 小时前
怎么把pyqt界面做的像web一样漂亮
前端·python·pyqt
鸡啄米的时光机6 小时前
vscode的一些实用操作
vscode·学习
mengyoufengyu7 小时前
算法12-贪心算法
python·算法·贪心算法