摘要: 客户端实例: 阅读全文
posted @ 2018-06-21 17:42 努力乄小白 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 队列最主要的两个作用: 1.解耦(松耦合) 2.提高效率 阅读全文
posted @ 2018-06-21 17:25 努力乄小白 阅读(168) 评论(0) 推荐(0) 编辑
摘要: import time import threading event =threading.Event() def lighter(): count=0 event.set()#先设置成绿灯 while True: if count >5 and count10: event.set()#变绿灯 count=... 阅读全文
posted @ 2018-06-21 13:57 努力乄小白 阅读(210) 评论(0) 推荐(0) 编辑