教程集 www.jiaochengji.com
教程集 >  Python编程  >  Python入门  >  正文 vscode怎么配置python

vscode怎么配置python

发布时间:2021-04-07   编辑:jiaochengji.com
教程集为您提供vscode怎么配置python等资源,欢迎您收藏本站,我们将为您提供最新的vscode怎么配置python资源

1、下载安装 python (https://www.python.org/downloads/windows/)

web-based installer 在线安装

executable installer exe安装

embeddable zip file 内嵌版本

python的安装步聚可以参考http://jingyan.baidu.com/article/0bc808fc42dfab1bd485b99f.html,注意安装后配置 path。

2、下载安装VS Code (https://code.visualstudio.com/Download)

相关推荐:《Python培训视频

3、在VS Code里安装 python 插件

(1)按“Ctrl Shift P”键,输入“ext install”,选择“Extensions:install extension”,按回车键。

(2)再输入“python”

(3)等待安装成功。

4、在vs code中配置运行python程序的命令

(1)按“Ctrl Shift P”键,搜索“Configure Task Runner”。

(2)打开tasks.json

修改“Command”中的“tsc”为“python”;

修改“showOutput”中的“silent”为“always”;

修改“Arguments”中的‘[“Helloworld.ts”]’为‘[“${file}”]’;

删除最后的一行属性“problemMatcher”。

然后保存更改。

(3)使用“Ctrl Shift B”执行py程序文件即可。

您可能感兴趣的文章:
在vscode中编写Python的详细步骤
VSCode搭建Go语言开发环境
用vscode怎么写Python
vscode怎么配置python
vscode如何安装python
Go 语言 win 环境搭建及开发工具配置
windows环境下,VS Code配置GO语言开发环境
【保姆级教程】手把手教你进行Go语言环境安装及相关VSCode配置
vscode如何配置python
Ubuntu配置开发环境

[关闭]
~ ~