一、下载与安装PyCharm
1.前往官网下载软件:官网下载
2.选择对应的Mac系统,下载
![](https://img-blog.csdnimg.cn/20200520201921468.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2psaHgxMjM0NTY=,size_16,color_FFFFFF,t_70)
![](https://img-blog.csdnimg.cn/20200520202004645.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2psaHgxMjM0NTY=,size_16,color_FFFFFF,t_70)
3.下载完安装
![](https://img-blog.csdnimg.cn/20200520202037347.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2psaHgxMjM0NTY=,size_16,color_FFFFFF,t_70)
4.安装完成后,在应用程序可以找到对应的图标
![](https://img-blog.csdnimg.cn/20200520202145218.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2psaHgxMjM0NTY=,size_16,color_FFFFFF,t_70)
二、启动PyCharm
1.启动,如下图所示(此处选择的是暂不导入设置,若需要破解可以选择前者):
![](https://img-blog.csdnimg.cn/20200520202414141.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2psaHgxMjM0NTY=,size_16,color_FFFFFF,t_70)
2.选择用户喜欢的模式,依据经验选择
![](https://img-blog.csdnimg.cn/20200520202722163.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2psaHgxMjM0NTY=,size_16,color_FFFFFF,t_70)
3.编辑器颜色及字体
![](https://img-blog.csdnimg.cn/2020052020282280.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2psaHgxMjM0NTY=,size_16,color_FFFFFF,t_70)
4.存储脚本的路径
![](https://img-blog.csdnimg.cn/20200520203002456.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2psaHgxMjM0NTY=,size_16,color_FFFFFF,t_70)
三、安装Python
1.官网下载安装:官网下载安装
2.安装完,在终端中输入:Python,可以查看其版本
![](https://img-blog.csdnimg.cn/20200520203343951.png)
四、创建一个简单的例子
1.创建并配置工程
![](https://img-blog.csdnimg.cn/20200520203516275.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2psaHgxMjM0NTY=,size_16,color_FFFFFF,t_70)
2.新建一个HelloWorld的例子
![](https://img-blog.csdnimg.cn/20200520203757991.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2psaHgxMjM0NTY=,size_16,color_FFFFFF,t_70)
输入文件名称
![](https://img-blog.csdnimg.cn/20200520203835624.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2psaHgxMjM0NTY=,size_16,color_FFFFFF,t_70)
输入代码,并运行,查看输出结果:
![](https://img-blog.csdnimg.cn/20200520204609809.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2psaHgxMjM0NTY=,size_16,color_FFFFFF,t_70)