1、下载安装 python https://mand": "d:\\ProgramData\\Anaconda3\\python.exe", "args": [ "1.py" ], "group": { "kind": "build", "isDefault": true } } ]}
因为小编么有将python添加到环境变量里面,直接给出了anaconda的命令。
3) 使用 ctrl + shift + B 执行py程序文件
其实更多时候直接用F5就可以了,用户配置
"python.pythonPath": "d:\\ProgramData\\Anaconda3\\python.exe"