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

}

]

}

相关推荐
Daily Mirror3 分钟前
Day44 简单 CNN 实战
python
zyx没烦恼5 分钟前
YAML模块
开发语言·python
智航GIS9 分钟前
4.2 集合(Set)
开发语言·python
小徐Chao努力15 分钟前
【Langchain4j-Java AI开发】07-RAG 检索增强生成
java·人工智能·python
小熊熊知识库36 分钟前
AI架构详解以及免费AI如何薅
人工智能·python·ai使用
hakesashou41 分钟前
python变量如何加入到文件路径
python
梦弦181 小时前
Django:Python高效Web开发利器
python·django
Knight_AL1 小时前
Spring AOP 中 JoinPoint 使用指南
java·python·spring
知远同学1 小时前
Pycharm顶部菜单栏固定显示
ide·python·pycharm
默默前行的虫虫1 小时前
nicegui中多次调用数据库操作总结
数据库·python