import time,threading event = threading.Event() def lighter(): count = 0 event.set() while True: if count > 5 and count < 10:#改成红灯 event.clear()#把标志位清了 print("