python多进程

from multiprocess import Pool

with Pool() as pool:
    # input_list: [input1, input2, input3...]
    for output in pool.imap_unordered(func, input_list):
        # do something

def func(input):
    # do something 
    return output
原文地址:https://www.cnblogs.com/holaworld/p/14754731.html