摘要: https://docs.python-requests.org/en/latest/user/advanced/#body-content-workflow Body Content Workflow By default, when you make a request, the body of 阅读全文
posted @ 2021-05-16 23:19 profesor 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 方法一: 使用python标准库中urllib: import urllib.request file = urllib.request.urlopen("https://speed.hetzner.de/100MB.bin") print(file.length) 方法二: 安装强大的三方库req 阅读全文
posted @ 2021-05-16 23:06 profesor 阅读(65) 评论(0) 推荐(0) 编辑