
1.3 开发工具(VSCode)的安装
开发工具可以帮助程序员更加方便地编写和调试代码、加快开发速度。Python的开发工具有很多,例如PyCharm、VSCode等。这里推荐使用VSCode,无论从安装还是使用方面都非常轻便,相信你肯定会在一秒钟内爱上它。如果你有Web开发经验,并且熟练webstrom工具的使用,那么PyCharm可能更加适合你,可以无缝切换。
下面介绍在Windows系统中安装VSCode的具体步骤:
1 通过浏览器打开https://code.visualstudio.com/官网(见图1-20)。

图1-20 下载安装所需文件
在VSCode官网的首页有Download for Windows选项,选择对应自己电脑系统的版本下载。
2 下载完成后单击.exe可执行程序,进入到图1-21所示的界面,单击“下一步”按钮。

图1-21 双击.exe文件进入安装过程
3 阅读许可协议后选中“我接受协议”单选项,并单击“下一步”按钮,如图1-22所示。

图1-22 选择“我接受协议”
4 选择目标位置,即软件的安装目录,可以通过“浏览”按钮修改后单击“下一步”按钮,如图1-23所示。

图1-23 单击“下一步”按钮
5 设置快捷方式,一般不用处理,直接单击“下一步”按钮。

图1-24 单击“下一步”按钮
6 全选其他任务后单击“下一步”按钮,如图1-25所示。

图1-25 全部勾选
7 安装准备就绪,单击“安装”按钮,如图1-26所示。

图1-26 单击“安装”按钮
8 安装过程中(见图1-27),不要关闭窗口,等待1-2分钟即可。

图1-27 安装过程中
9 安装成功后单击“完成”按钮即可(见图1-28)。

图1-28 安装成功
10 打开VSCode,按照图1-29所示的操作安装Python插件,这样会有Python的提示。

图1-29 安装Python的插件