在终端或者命令行模式中python进入python2.x shell或者python3进入python3.x shell,输入quit()或者exit()退出。
输入which python,显示 /usr/bin/python
输入which python3,显示/usr/bin/python3
输入pyrhon -V,显示 Python 2.7.6
输入python3 -V,显示Python 3.4.3
如果想以后直接使用python3
$ sudo rm /usr/bin/python
$ cd /usr/bin
$ ln -s python3.2 python # Choose the Python 3.x binary here