初学Python ~\(≧▽≦)/~啦啦啦

作为一位初学者,我选择了利用虚拟机 学习Python。

1、在linux虚拟机下学习python

  python3.5 的下载安装

  [root@python ~]# wget https://www.python.org/ftp/python/3.5.0/Python-3.5.0b4.tgz


解压:

 [root@python ~]#tar zxvf Python-3.5.0b4.tgz

安装:

 [root@python ~]#cd Python-3.5.0b4

 [root@python ~]#./configure

 [root@python ~]# make

 [root@python ~]# make install

成功!  >>>exit() 退出python

 [root@python ~]# python3.5

Python 3.5.0b4 (default, Jan  3 2016, 12:19:39) 

[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux

Type "help", "copyright", "credits" or "license" for more information.

>>> exit()

[root@python ~]# 

*************************************************************************

注:我的linux虚拟机中自带一个python2.6,直接输入python

[root@python ~]# python

Python 2.6.6 (r266:84292, Oct 12 2012, 14:23:48) 

[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> exit()     【退出python】

[root@python ~]# 

另外,输入python后 按2下Tab键补齐 可看到机器里安装的所有的python版本哦(⊙0⊙)