Python的Linux的入门,学习摘要。

在终端或者命令行模式中python进入python2.x shell或者python3进入python3.x shell,输入quit()或者exit()退出。

输入which python,显示 /usr/bin/python

输入which python3,显示/usr/bin/python3

输入pyrhon -V,显示 Python 2.7.6

输入python3 -V,显示Python 3.4.3

如果想以后直接使用python3

  1. $ sudo rm /usr/bin/python
  2. $ cd /usr/bin
  3. $ ln -s python3.2 python # Choose the Python 3.x binary here

猜你喜欢

转载自blog.csdn.net/sherwin_s/article/details/81008578
今日推荐