您的位置 首页 技术

vscode怎么运行python代码

vscode怎么运行python代码 按下 Ctrl +Shift+B 运行python代码。 前提是得配置taske.json 1、按下Ctrl +Shift+B,点击 2、点击…

vscode怎么运行python代码

按下 Ctrl +Shift+B 运行python代码。

前提是得配置taske.json

1、按下Ctrl +Shift+B,点击

1.png

2、点击创建

2.png

3、运行外部命令

3.png

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代码的详细内容,更多请关注24课堂在线网其它相关文章!

本文来自网络,不代表24小时课堂在线立场,转载请注明出处:https://www.24ketang.cn/36930.html

为您推荐

返回顶部