python线程池,多线程

logDebug(self.cfg_down_appdata, f"获取{lastId}的详情")
t_list = []
with ThreadPoolExecutor(10) as executor:
    for info in list_info:
        f = executor.submit(self.all_send_details, info)
        t_list.append(f)
        print('main thread running')

for future in as_completed(t_list):
    print(future.result())
原文地址:https://www.cnblogs.com/gqv2009/p/13185948.html