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}”}
}
]
}

你可能感兴趣的:(vscode,python,ide)