Mac电脑OSX系统自带Python,但版本是2.7
打开终端输入python

我们看到系统默认的Python版本是2.7.10,如果我们要学习使用Python3就需要手动安装Python3
这里使用Homebrew安装,(使用Homebrew安装Apple没有预装但你需要的东西)
命令行里输入brew install python3,如下图所示


安装完成,命令行里 输入python3启动

Tips:终端输入python默认启动python2.7,终端输入python3启动python3.7
网友评论