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

}

]

}

相关推荐
nimadan1214 小时前
AI仿真人剧服务商2025推荐,前沿技术与创新体验结合
人工智能·python
AI自动化工坊14 小时前
Claw Code技术深度解析:Python+Rust混合架构的设计与实现
开发语言·人工智能·python·ai·架构·rust·开源
青瓷程序设计16 小时前
基于YOLO的火灾烟雾检测系统~Python+目标检测+算法模型+2026原创
python·yolo·目标检测
立莹Sir16 小时前
Spring Bean 生命周期详解
java·python·spring
JHC0000001 天前
基于Ollama,Milvus构建的建议知识检索系统
人工智能·python·milvus
mOok ONSC1 天前
SpringBoot项目中读取resource目录下的文件(六种方法)
spring boot·python·pycharm
GIS兵墩墩1 天前
postgis--PostgreSQL16及其plpython3u扩展
python·postgis
new Object ~1 天前
LangChain的短期记忆存储实现
python·langchain
魔都吴所谓1 天前
【Python】从零构建:IP地理位置查询实战指南
开发语言·python·tcp/ip
测试19981 天前
使用Python自动化生成接口测试用例
自动化测试·软件测试·python·测试工具·职场和发展·测试用例·接口测试