通过vscode执行python程序
- 配置 tasks.json : ctrl + shifit + p 输入 “Tasks: Configure Task Runner”,
{
"version": "0.1.0",
// The command is tsc. Assumes that tsc has been installed using npm install -g typescript
"command": "C:/Python27/python.exe",
// The command is a shell script
"isShellCommand": true,
// Show the output window only if unrecognized errors occur.
"showOutput": "always",
// args is the HelloWorld program to compile.
"args": ["${file}"]
}
- ctrl + shift + B 执行