您好,欢迎访问一九零五行业门户网

vscode怎么运行python代码

vscode怎么运行python代码    
按下 ctrl +shift+b 运行python代码。
前提是得配置taske.json
1、按下ctrl +shift+b,点击
2、点击创建
3、运行外部命令
4、创建完,替换里面的内容为 (注意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就运行了。
相关文章教程推荐:vscode教程
以上就是vscode怎么运行python代码的详细内容。
其它类似信息

推荐信息