摘要:
进程池import multiprocessingimport timedef do_calculation(data): print(multiprocessing.current_process().name + " " + str(data)) time.sleep(3) return data * 2def start_process(): print ('Starting', multiprocessing.current_process().name)if __name__ == '__main__': inputs = list 阅读全文