我正在使用 red hat 5 linux,我想知道在 python 2.6 中什么组合键会引发 KeyboardInterrupt 异常。我知道在windows下是Ctrl+c。
问候,
最佳答案
还是CtrlC。或者您可以向进程发送一个 SIGINT
。
关于Python 键盘中断按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6371060/
我正在使用 red hat 5 linux,我想知道在 python 2.6 中什么组合键会引发 KeyboardInterrupt 异常。我知道在windows下是Ctrl+c。
问候,
最佳答案
还是CtrlC。或者您可以向进程发送一个 SIGINT
。
关于Python 键盘中断按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6371060/
相关文章:
java - Linux Ubuntu Android SDK 管理器未启动 - android :java: not found
python - 在不关闭 Python 中的 Selenium Webdriver session 的情况下捕获 `KeyboardInterrupt`
python - 从键盘输入暂停 Python 子进程而不终止子进程
python - 如何将 "KeyboardInterrupt"命令替换为另一个键?
javascript - Python 中的 Webdriver - 执行外部 JavaScript
python - Numpy 的运行速度是 MATLAB 的一半
linux - Inkscape 0.92.2编译: links with two libMagick versions