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

}

]

}

相关推荐
njidf13 分钟前
趣味项目与综合实战
jvm·数据库·python
李昊哲小课16 分钟前
PyMySQL完整教程
服务器·数据库·python·pymysql
sqyno1sky20 分钟前
Python数据库操作:SQLAlchemy ORM指南
jvm·数据库·python
belldeep32 分钟前
python:spaCy 源代码解析,性能优化方法
python·性能优化·cython·spacy
deephub42 分钟前
TPU 架构与 Pallas Kernel 编程入门:从内存层次结构到 FlashAttention
人工智能·python·深度学习·tpu
薛定谔的猫喵喵43 分钟前
卸载 Python 3.8 报错 “Could not set file security” 的终极解决方案
开发语言·python
墨尔本、晴1 小时前
[Django-web]1.环境准备
python·django
智算菩萨1 小时前
OpenCV色彩空间转换实战:BGR转HSV/LAB的工业应用场景详解(含自动化脚本)
人工智能·python·opencv·计算机视觉·自动化·音视频
曲幽1 小时前
别再数据线了!用FastAPI 5分钟搭个局域网文件+剪贴板神器
python·fastapi·web·async·clipboard·fileupload
AbsoluteLogic1 小时前
Python——必学内置模块 OS
python