requests.exceptions.ConnectionError: HTTPConnectionPool(host='api.mymemory.translated.net', port=80): Max retries exceeded with url:
网上找的教程也都试过了
s.keep_alive = False # 关闭多余连接
requests.adapters.DEFAULT_RETRIES = 5 # 增加重连次数
response.close()
s.close()
time.sleep(5)
都加了还是不行
请登录后评论
TOP
切换版块
完整代码