1. 在liunx下输入python,进入python命令行:

Python 2.7.2+ (default, Oct  4 2011, 20:06:09)   
[GCC 4.6.1] on linux2  
Type "help", "copyright", "credits" or "license" for more information.  
>>> quit()  
gaojs@ubuntu:~$   

2.使用 quit(), exit(), 或者Ctrl-D退出python命令行

Logo

更多推荐