if __name__ == '__main__': # 所有多进程操作要写在这个if 下. 进程关系决定的
multiprocessing.freeze_support() #此句windows 上必须
print time.asctime( time.localtime(time.time()) )
pool=multiprocessing.Pool()
resultes=pool.map(Get_PageSource,urls)
pool.close()
pool.join()
python 多进程模块 multiprocessing
最新推荐文章于 2020-03-26 18:11:05 发布