Python2中文的解決 
 在py文件第一行添加
#coding=utf-8 
        - 1
 
規范的應該這么寫
#-*- coding:utf-8 -*- 
        - 1
 
安裝python
系統默認安裝Python2

安裝Python3的命令
sudo apt-get install python3.5 
        - 1
 

可能無法解析主機像這樣

不用管繼續執行就可以了
運行Python編譯器:python3 xx文件名xx.py
使用Python2 Python xx文件名xx.py 
 使用python3 python3 xx文件名xx.py
1、卸載python3.4
sudo apt-get remove python3.4 
         2、卸載python3.4及其依賴
sudo apt-get remove --auto-remove python3.4 
         3、清除python3.4
sudo apt-get purge python3.4 or sudo apt-get purge --auto-remove python3.4 
         
注釋:
此方法卸載python比較徹底,所以適合更換python版本時使用。
——對於既想完全卸載python,又無法接受完全卸載后某些python組件無法使用的童鞋,請慎重!!
