Python 批量添加线程

import threading

thread_list=[]
for i in range(20):
    t=threading.Thread(target=ip_test)
    t.start()
    thread_list.append(t)
for i in thread_list:
    i.join()

  利用列表,批量添加 启动线程

原文地址:https://www.cnblogs.com/python666666/p/10009427.html