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

2025-03-17 08:44:59
推荐回答(4个)
回答1:

quit()或者使用新终端用kill命令终止进程。

回答2:

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

回答3:

exit() 回车

回答4:

exit() \n
option+Z(Ctrl+Z) \n