def add(args): (x,y) = args return x+y
def main(): if __name__ == “__main__”: pool = Pool(2) results = pool.map(add,[(1,2),(2,3),(3,4)]) Log(“result”,results)
这段代码总是提示无法pickle到add方法,有哪位大神能帮忙看看?或者提供一点能跑通的进程池范例也好