VS Code问题 VS code 不能像Pycharm 那样很方便的运行Python 脚本并自动设置 PYTHONPATH 变量就不是很方便,此时可用通过创建.vocode/settings.json 解决 { "terminal.integrated.env.linux": { "PYTHONPATH": "${workspaceFolder}" }, "terminal.integrated.env.osx": { "PYTHONPATH": "${workspaceFolder}" }, "terminal.integrated.env.windows": { "PYTHONPATH": "${workspaceFolder}" } }