import time print("守护进程已启动,将持续运行...") try: while True: time.sleep(1) except KeyboardInterrupt: print("守护进程已停止")