vscode怎么运行.py文件


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

通过vscode执行python程序的方法:

先配置 tasks.json :

使用快捷键“ ctrl+shifit+p”打开搜索栏。输入 “Tasks: Configure Task Runner”打开tasks.json

{
    "version": "0.1.0",

    // The command is tsc. Assumes that tsc has been installed using npm install -g typescript
    "command": "C:/Python27/python.exe",

    // The command is a shell script
    "isShellCommand": true,

    // Show the output window only if unrecognized errors occur.
    "showOutput": "always",

    // args is the HelloWorld program to compile.
    "args": ["${file}"]
}

配置完成后使用快捷键“ctrl+shift+B”即可运行.py文件。

相关文章教程推荐:vscode教程

以上就是vscode怎么运行.py文件的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

vsCode怎么使用调试

vsCode菜单栏与工具栏隐藏之后怎么找回来

vsCode中如何设置多行注释快捷键

vsCode如何用终端运行

vsCode怎么显示空格和tab符号

vsCode运行js文件出现乱码

vsCode中快速搭建vue模板的方法介绍

vsCode怎么设置快捷键

vsCode中c语言编译环境的配置方法(分享)

vsCode怎样配置eslint

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



打赏

取消

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

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

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

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

评论

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

    正在狠努力加载,请稍候...