摘要: from threading import Condition,Thread import time def func(con,i): con.acquire() con.wait() print("第%s个线程执行了" % i) con.release() con = Condition() # 先实例化一个对象 for i in range(10):... 阅读全文
posted @ 2018-10-28 09:12 Nope!!!! 阅读(140) 评论(0) 推荐(0) 编辑