首页 > 解决方案 > Python 请求在我的笔记本电脑上运行缓慢,但在我的 macbook 上运行很快

问题描述

start = t.time()
response = requests.get(url='https://stackify.com/web-application-problems/')
end = t.time()
print(response.status_code)
print(end-start)

笔记本电脑输出:200 42.25020903

MacBookAir 输出 200 0.545675423

有人可以解释问题出在哪里,我还没有尝试使用记录器。两台机器都在同一个网络上。

标签: pythonpython-requestsweb-crawlerscreen-scraping

解决方案


推荐阅读