本例只建立了一个线程,实际上可以改为两个线程或者多个线程及多个事件。 t = threading.Thread(target=*func, args=(event_obj,)) 创建一个线程 event = threading.Event() 创建一个even……