欢迎访问悦橙教程(wld5.com),关注java教程。悦橙教程  java问答|  每日更新
页面导航 : > > > 文章正文

vscode运行python文件,vscode运行python

来源: javaer 分享于  点击 13235 次 点评:71

vscode运行python文件,vscode运行python


Ctrl +Shift+B 运行python

得配置taske.json

taske.json在哪,按下Ctrl +Shift+B

点击

 

 

 

 

 

点击

 

 

 

 

 

点击 就有taske.json啦

然后替换里面的内容为 (注意command的要改成你自己python的安装路径)

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "python",
            "type": "shell",
            "command": "C:/Users/FSITQD/AppData/Local/Programs/Python/Python36-32/python",
             "args": [
                "${file}"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}

 

然后Ctrl +Shift+B就运行啦

相关文章

    暂无相关文章

用户点评