开发者社区 问答 正文

爬虫中使用协程池的命令是什么?

爬虫中使用协程池的命令是什么?

展开
收起
游客5n3d3br4o5qn4 2021-11-18 23:12:46 401 分享 版权
1 条回答
写回答
取消 提交回答
  • import gevent.monkey gevent.monkey.patch_all() from gevent.pool import Pool pool = Pool(5) pool.apply_async(func,callback=func2)

    2021-11-18 23:13:09
    赞同 展开评论
问答分类:
问答地址: