注意:为避免脚本永久卡住,设置 join 超时并提示。 t1 = threading.Thread(target=deadlock_worker_1, daemon=True) t2 = threading.Thread(target ...