以centos为例
默认python版本为:
python
Python 2.6.6 (r266:84292, Jul 23 2015, 15:22:56)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
三、验证
python
Python 3.5.2 (default, Dec 29 2016, 16:34:53)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
[iyunv@station88 Python-3.5.2]# cat test.py
import os
print ('hello world')
[iyunv@station88 Python-3.5.2]# python test.py
hello world
[iyunv@station88 Python-3.5.2]#