一、错误代码示例 import time while True: print("hello world!") try: exit(0) except: pass time.sleep(0.1) 运行程序发现并没有停下来,是因为exit