📜  按键上的 python 循环中断 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:04.742000             🧑  作者: Mango

代码示例1
try:
    while True:
        do_something()
except KeyboardInterrupt:
    pass