摘要: from atexit import register from random import randrange from threading import BoundedSemaphore, Lock, Thread from time import sleep,ctime lock = Lock() MAX = 5 # 最大线程数 candytray = BoundedSemaphore... 阅读全文
posted @ 2019-01-04 10:06 qukaige 阅读(210) 评论(0) 推荐(0) 编辑
摘要: from atexit import register from random import randrange from threading import Thread, currentThread, Lock, current_thread, active_count from time import ctime, sleep class CleanOutputSet(set): ... 阅读全文
posted @ 2019-01-04 08:59 qukaige 阅读(124) 评论(0) 推荐(0) 编辑