python - 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
有人可以解释问题出在哪里,我还没有尝试使用记录器。两台机器都在同一个网络上。
解决方案
推荐阅读
- api - 取决于经过身份验证的用户的 API 端点
- graphql - 将 ImageSharp 作为字段添加到 MarkdownRemark 节点(不是 frontmatter)
- r - For循环填充R中的一列
- python-3.x - 这在 Python 中是如何发生的?
- python - 函数的参数可以用作全局变量的占位符吗
- http - 根据查询的路由使用不同的请求解析器
- javascript - 动态添加到 Promise 数组时,Promise 全部提前完成
- java - 根据杰克逊中的xml文档属性在反序列化期间检测对象类型 - 没有JsonNode
- node.js - 为什么我在 Mongoose 中的 createIndex 失败了?
- c - 为什么“__tracepoint_sched_switch”未定义