摘要: #利用Event类模拟红绿灯 import threading import time event = threading.Event() def lighter(): count = 0 event.set() #初始值为绿灯 while True: if 5 < count <=10 : eve 阅读全文
posted @ 2020-03-13 21:36 Andrew.SH 阅读(777) 评论(0) 推荐(0) 编辑