将获取请求发送到任何站点都需要很长时间,大约需要1-2分钟
我尝试过
重启计算机
重新安装python
重新启动vscode
更新点
更新python
更新vscode
重置网络设置
使用的代码
import requests, time
start = time.time()
url = 'https://google.com'
requests.get(url)
print(f"it took {time.time() - start} seconds to process the request")
花费了168.57493925094606秒来处理请求