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

}

]

}

相关推荐
花花无缺3 分钟前
Windows 定时执行 Python 脚本方案
python·操作系统·命令行
流云鹤1 小时前
1. 配置环境、创建导航栏
python·django
三亚兴嘉装饰1 小时前
准备在三亚装房子找哪家装修
python
Mx_coder2 小时前
8年Java开发者AI转型第二周:RAG系统深入 + 向量数据库实战(Day 8-10)
python
ximen502_2 小时前
Python 语言知识总结
开发语言·python
流云鹤3 小时前
2.登录模块
python·django
C+-C资深大佬3 小时前
Java 变量:从入门到精通
java·开发语言·python
chouchuang3 小时前
day-027-面向对象-下
开发语言·python
华研前沿标杆游学3 小时前
2026年标杆游学机构选择指南:从资质审核到效果验收全流程本指南
python
衔烛之龙13 小时前
Windows x64 构建 liboqs-java教程
java·windows·python