19
python multiprocessing pool.map用于多个参数
在Python多处理库中,是否存在pool.map的变体,它支持多个参数? text = "test" def harvester(text, case): X = case[0] text+ str(X) if __name__ == '__main__': pool = multiprocessing.Pool(processes=6) case = RAW_DATASET pool.map(harvester(text,case),case, 1) pool.close() pool.join()