小木木的Python学习笔记
初學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⊙)
轉載于:https://blog.51cto.com/10986507/1731308
總結
以上是生活随笔為你收集整理的小木木的Python学习笔记的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: rc.local自启动学习
- 下一篇: Visual Studio 2015上安