Python 编程 多线程 中的 event
转载自https://blog.csdn.net/mouday/article/details/79146183
红绿灯实例,event事件
import time, threading
event = threading.Event()
# 交通灯
def lighter():
count = 0
while True:
if count < 5: ...
转载
2018-10-20 23:37:46 ·
252 阅读 ·
1 评论