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

}

]

}

相关推荐
嘿丨嘿4 小时前
VLA 入门(六):VLA 如何进行强化学习后训练?
人工智能·python·深度学习·机器人
祉猷并茂,雯华若锦4 小时前
Appium 3.x实战:获取元素属性全解析
python·appium·自动化
宠友信息5 小时前
消息序号如何保证即时通讯源码聊天记录稳定加载
java·spring boot·redis·python·mysql·uni-app
小柯南敲键盘6 小时前
批量图片翻译与视频字幕一站式解决高效跨境电商沟通难题
大数据·人工智能·python·音视频
smj2302_796826528 小时前
解决leetcode第3989题网格中保持一致的最大列数
python·算法·leetcode
吴梓穆9 小时前
Python 基础 正则表达式
python
巧克力男孩dd9 小时前
Python超典型练习题(第一次作业)
开发语言·python·算法
闲猫10 小时前
LangChain / Core components / Models
开发语言·python·langchain
cui_ruicheng12 小时前
Python从入门到实战(十三):模块、包与环境管理
开发语言·python
李宸净13 小时前
Web自动化测试selenium+python
前端·python·selenium