python多线程
import threading
def process(arg1, arg2):
return
threads = []
threads.append(threading.Thread())
threads.append(threading.Thread(target=process, args=(arg1[0], arg2[0])))
threads.append(threading.Thread(target=process, args=(arg2[1], arg2[1])))
threads.append(threading.Thread(target=process, args=(arg3[2], arg2[2])))
threads.append(threading.Thread(target=process, args=(arg4[3], arg2[3])))
# 启动所有线程
for t in threads:
# t.setDaemon(True)
t.start()
# 主线程中等待所有子线程退出
for thread in threads:
thread.join()