目前Python有两个版本,一个是2.x,一个是3.x。这两个版本是不兼容的。由于3.x版越来越普及,而且在2020年1月1日,官方宣布,停止Python2的更新。所以我们的教程将以最新的Python 3.8版本为基础。
一、安装python
- 官网链接: Welcome to Python.org
![](https://img-blog.csdnimg.cn/img_convert/1de14dbf8e8269cee9cd1eea0fd8698f.png)
![](https://img-blog.csdnimg.cn/img_convert/191c855c63905e76ad4825b8696ce58a.png)
![](https://img-blog.csdnimg.cn/img_convert/708ba18688207fcb2694d2275c4b8e53.png)
![](https://img-blog.csdnimg.cn/img_convert/f8b5137f733918579b1eaeedc896e22a.png)
![](https://img-blog.csdnimg.cn/img_convert/28f9fdbd219497704d1cae4b5942ad7e.png)
![](https://img-blog.csdnimg.cn/img_convert/a09a3f87c7bf61a9ab14c2176c197783.png)
![](https://img-blog.csdnimg.cn/img_convert/639b318eb3e18918dc4addc1304d5877.png)
安装路径中尽量不要有中文和空格。
![](https://img-blog.csdnimg.cn/img_convert/f2c1f7d3d6aa35013fcaa774cb4333b6.png)
![](https://img-blog.csdnimg.cn/img_convert/0c531814054191212bbfb3c8c676708a.png)
二、安装pycharm
![](https://img-blog.csdnimg.cn/img_convert/1de01882212d3ae48b51d6ff415c6902.png)
![](https://img-blog.csdnimg.cn/img_convert/1162c22d9108b462557d39101a691228.png)
![](https://img-blog.csdnimg.cn/img_convert/30a1882d2741f5f1078656160589b95f.png)
注意:访问时不要使用校园网
在下载文件夹中出现
![](https://img-blog.csdnimg.cn/img_convert/da8c1d33b8a714a8fb960a5db3d6d1d3.png)
![](https://img-blog.csdnimg.cn/img_convert/60a0b3f3f4b7718f8359dc677a7ced2d.png)
![](https://img-blog.csdnimg.cn/img_convert/b95c1184bfaade4d7289801d22c148a9.png)
![](https://img-blog.csdnimg.cn/img_convert/e6d15daa78688932c0279c151b15e525.png)
![](https://img-blog.csdnimg.cn/img_convert/2e7ff3da93948bffdb260e5fac47ba66.png)
打开之后,出现初始化界面
![](https://img-blog.csdnimg.cn/img_convert/22be960b41a4468571cdf63abff0b33b.png)
点击New Project,创建新项目
![](https://img-blog.csdnimg.cn/img_convert/e52ea76fafe27c12b8b21f2e6e68f4d6.png)
点击创建
![](https://img-blog.csdnimg.cn/img_convert/625363eb08203f73d0c3604ad9971e58.png)
目前Python有两个版本,一个是2.x,一个是3.x。这两个版本是不兼容的。由于3.x版越来越普及,而且在2020年1月1日,官方宣布,停止Python2的更新。所以我们的教程将以最新的Python 3.8版本为基础。
安装路径中尽量不要有中文和空格。