摘要:
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... 阅读全文
摘要:
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): ... 阅读全文