在linux的终端怎么退出python命令行

2025-03-12 16:19:25
推荐回答(1个)
回答1:

Python 2.7.7 (default, Jun  3 2014, 01:46:20) 
[GCC 4.9.0 20140521 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> quit
Use quit() or Ctrl-D (i.e. EOF) to exit
>>>

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


如果解决了您的问题请采纳!
如果未解决请继续追问!