在以前的计算机上,当我尝试在Windows命令提示符下退出python脚本时,您需要做的就是按ctrl+ c.但当我在我的电脑上这样做时,它会告诉我"KeyboardInterrupt"
C:\Windows\System32
>python
Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 07:18:10) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> [I press ctrl+c]
KeyboardInterrupt
>>>
Run Code Online (Sandbox Code Playgroud)
那么如何解决这个问题,以便我可以退出python脚本?
编辑:
ctrl+ z工作,但我需要输入它作为代码.希望能够快速简便地退出脚本,但是哦.