if __name__ == '__main__': ls_result_name = [] ls_thread = [] time.clock() # 逐一启动1000个线程 for i in range(0,10): if len(ls_thread) == 0: t = threading.Thread(target=fun, args=(i,ls_result_name,None)) else: t = threading.Thread(target=fun, args=(i,ls_result_name,ls_thread[-1])) t.start() ls_thread.append(t)