码迷,mamicode.com
首页 > 编程语言 > 详细

通过vscode执行python程序

时间:2016-06-06 12:14:41      阅读:572      评论:0      收藏:0      [点我收藏+]

标签:

通过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 执行

通过vscode执行python程序

标签:

原文地址:http://www.cnblogs.com/mick-li/p/5563076.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!