摘要: Python里执行并发有进程和线程两个,分布使用 threading 和multiprocessing 两个库,一般用的是这两个库里的Thread和Process 进程和线程的使用场景: 1. 一般在有大量的数据(耗时)操作的时候,会用到线程和进程 2.python里要优先用进程,因为Python里 阅读全文
posted @ 2019-08-09 14:33 mamingchen 阅读(430) 评论(0) 推荐(0) 编辑