【踩坑】Python3的requests包报错 发表于 2023-04-20 更新于 2024-04-30 阅读次数: 前言Python3的requests包报错:Failed to establish a new connection 解决问题 添加请求头 123resp = requests.get("", headers={ "Connection": "close"}) 完成参考文献CSDN——郑德帅