Python 多线程 threading.Thread 同时最多有 n 个线程
Regular无限多线程import threadingimport numpy as npimport timeclass BuildThread(threading.Thread): def __init__(self, name, alist): threading.Thread.__init__(self) self.alist = alist def run(self): self.alist.append(np.random.random_integers(1,10)




