python ctrl +d 退出

来源:互联网 发布:linux 除法 保留小数 编辑:程序博客网 时间:2024/05/26 05:50
[root@cdh1 bin]# python
Python 2.6.6 (r266:84292, Feb 21 2013, 23:54:59) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print("hello world");
hello world
>>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit
>>> exit;
Use exit() or Ctrl-D (i.e. EOF) to exit
>>> quit
Use quit() or Ctrl-D (i.e. EOF) to exit
>>> quit;
Use quit() or Ctrl-D (i.e. EOF) to exit
>>> q
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'q' is not defined
>>> help
Type help() for interactive help, or help(object) for help about object.
>>> 
[root@cdh1 bin]# ctrl +d 
0 0
原创粉丝点击