0
点赞
收藏
分享

微信扫一扫

ConnectionResetError: [Errno 104] Connection reset by peer


Python代码使用循环发起网络请求,发起单个没有问题,发起多个请求,就会报错

ConnectionResetError: [Errno 104] Connection reset by peer

可以考虑在每个请求之间增加一个时间间隔

time.sleep(0.5)

参考

  • Python 频繁请求问题: [Errno 104] Connection reset by peer


举报

相关推荐

0 条评论