1)yum install epel-release //安装epel-release源
2)yum install python34 //安装Python3.4
3)vim.bashrc
4)按下字母i键进入编辑模式,加入命令alias python='python3.4'设置指令的别名,按Esc键退出并输入:wq保存配置
5)source.bashrc //使修改立即生效
6)python //输入指令
7)touch hell.py //新建文件
8)vim hell.py //编写Python代码,打印hello world
9)python hell.py //运行程序,输出hello world