python 使用gevent报错maximum recursion depth exceeded while calling a Python object

364 阅读1分钟

学习来源:blog.csdn.net/weixin_4268…

这两行代码一定要放在最上面

from gevent import monkey
monkey.patch_all() # 打补丁,让gevent框架识别耗时操作,比如:time.sleep,网络请求延时