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

}

]

}

相关推荐
zzzll111117 分钟前
HashMap、HashTable、ConcurrentHashMap 详细区别与深度解析
开发语言·python
程序员AI工坊20 分钟前
Agent 开发:ReAct 循环与工具调用实战——从单次调用到自主 Agent
人工智能·后端·python·langchain·agent·react
️学习的小王33 分钟前
基于UDP实现简易聊天室(基础版)——Python实现
网络·python·udp
W_326001 小时前
Python 组合数据类型——序列(列表 & 元组)
开发语言·python
二进制杯莫停1 小时前
A和B环境的python版本相同,B环境无法安装pip依赖,离线安装
开发语言·python·pip
威联通安全存储2 小时前
TS-h1677AXU-RP 在汽车冲压车间高速冲压线检测网中的部署
python·汽车
RSTJ_16252 小时前
PYTHON+AI LLM DAY ONE HUNDRED AND TWENTY-NINE
人工智能·python
夏天测2 小时前
Python 网络编程从 TCP 三次握手到 Socket 搭建极简 AI 推理服务端(零基础可跑通完整代码)
python·socket·网络通信·tcp 网络编程·零基础网络编程
Vec‑Jie3 小时前
MerchantOps-KBQA 实践(十四):本地运行、性能限制与可验证的交付边界
人工智能·后端·python·flask