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就运行啦

Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐