摘要: import multiprocessing import time # 具体的处理函数,负责处理单个任务 def func(msg): # for i in range(3): print (msg) time.sleep(1) return "done " + msg if __name__ == "__main__": # 进程池,创建多个进程,并行执... 阅读全文
posted @ 2017-09-27 15:23 RoyFans 阅读(338) 评论(1) 推荐(1) 编辑