withthread专题

WithThread多线程识别某一线程受阻

从源代码修改 from threading import Threadfrom queue import Queueclass WithThread:def __init__(self, thread_num):self.thread_num = thread_numself.task_queue = Queue()self.threads = []self.is_running = Fals