摘要:
# Author:jum_# event 事件监测 红灯停绿灯行 线程标志位# 事件主要提供了三个方法wait、clear、set# clear:将“Flag”设置为False#set:将“Flag”设置为True# wait:等待设置标志位import threading,timeevent = 阅读全文
摘要:
import randomflag = 1try_=0while (flag): try_ +=1 yan = "" for i in range(0,4): cun=random.randrange(1,4) if cun==i: tmp=chr(random.randint(65,90)) el 阅读全文