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

}

]

}

相关推荐
飞Link6 小时前
什么是 AirSim?一文读懂无人机仿真平台
python·算法·无人机
曲径海盗6 小时前
【Python 学习第 38 天】for 循环
python·学习笔记·编程入门
在世修行7 小时前
智学文枢:变式题生成引擎
python·ai·pyside·题目生成
On The Road :8 小时前
Java 多线程详解:从入门到线程安全
java·python·安全
岁月宁静8 小时前
如何设计支持 Skills 的 Agent?一套可扩展的四层架构
python·agent
岁月宁静9 小时前
CrewAI 快速上手:10 分钟搭建你的第一个 Agent 团队
python·agent
曲径海盗9 小时前
【Python 学习第 40 天】for 循环
python·学习笔记·编程入门
专注仿真9 小时前
知识问答大模型-rag算法详解
人工智能·python·控制算法
染指111010 小时前
158.Agent-LangGraph-子图(共享状态和不共享状态模式)
开发语言·人工智能·python·ui·agent·agents
云和数据.ChenGuang11 小时前
Python 常见特殊方法详解:__new__、__init__、__del__、__str__、__repr__ 与 __getattribute__
开发语言·人工智能·python·1024程序员节