vscode怎么运行python代码


本文摘自PHP中文网,作者angryTom,侵删。


vscode怎么运行python代码

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

前提是得配置taske.json

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

1.png

2、点击创建

2.png

3、运行外部命令

3.png

4、创建完,替换里面的内容为 (注意command的要改成你自己python的安装路径)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

{

    // 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代码的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

vsCode 怎么删除文件

14个vsCode高频插件(推荐)

vsCode怎么运行python程序

9个高效使用vsCode的建议

vsCode vsstudio区别

vsCode keyframes报错怎么办

vsCode如何装插件?

vsCode显示不受支持怎么办

vsCode无法访问扩展怎么办

vsCode终端窗口无法输入命令

更多相关阅读请进入《vsCode》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...