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

}

]

}

相关推荐
2301_776508726 分钟前
Python日志记录(Logging)最佳实践
jvm·数据库·python
2401_8796938720 分钟前
用Python批量处理Excel和CSV文件
jvm·数据库·python
I'm Jie23 分钟前
Swagger UI 本地化部署,解决 FastAPI Swagger UI 依赖外部 CDN 加载失败问题
python·ui·fastapi·swagger·swagger ui
2401_8463416542 分钟前
Python Lambda(匿名函数):简洁之道
jvm·数据库·python
2401_879693871 小时前
进阶技巧与底层原理
jvm·数据库·python
阿_旭1 小时前
基于YOLO26深度学习的【桃子成熟度检测与分割系统】【python源码+Pyqt5界面+数据集+训练代码】图像分割、人工智能
人工智能·python·深度学习·桃子成熟度检测
蹦哒1 小时前
Kotlin 与 Java 语法差异
java·python·kotlin
jerryinwuhan1 小时前
python数据挖掘基础
python·数据挖掘·numpy
echome8881 小时前
Python 异步编程实战:asyncio 核心概念与最佳实践
开发语言·网络·python
yunyun321231 小时前
自动化与脚本
jvm·数据库·python