因为目前 mac 系统自带 python2.x,所以目前电脑上 python2.x 和 python3.x 都是可以用
使用 python2.x
1
2
3
4
5
shell> python
Python 2.7.10 (default, Aug 17 2018, 19:45:58)
[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
使用 python3.x
1
2
3
4
5
shell> python3
Python 3.7.1 (default, Nov 6 2018, 18:46:03)
[Clang 10.0.0 (clang-1000.11.45.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
安装 Pycharm
简介
pycharm 是一款针对 python 开发的优秀的 IDE, 以下是针对其在 mac 上的开发配置使用