摘要: python未提供线程池模块,在python3上用threading和queue模块自定义简单线程池,代码如下: 1 #用threading queue 做线程池 2 import queue 3 import threading 4 class ThreadPool(): 5 def __init 阅读全文
posted @ 2018-11-19 21:29 飞鸟_山东 阅读(359) 评论(0) 推荐(0) 编辑