您的位置:首页 > 编程语言 > Python开发

通过vscode执行python程序

2016-06-26 19:56 666 查看
通过vscode执行python程序

配置
tasks.json
:

ctrl + shifit + p
输入 Tasks: Configure Task Runner

修改其中的内容:

{
/** 在原文中,使用的是Windows环境下
*  本文适用的是Linux
*/

"version": "0.1.0",

// The command is tsc. Assumes that tsc has been installed using npm install -g typescript
"command": "/usr/bin/python",

// 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
执行

参考资料

通过vscode执行python程序
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  vs-code