+
95
-

python如何下载大文件?

python如何下载大文件?


网友回复

+
15
-
#!/usr/local/python3/bin/python3
# -*- coding: utf-8 -*
import requests

url = "http://web.debug.only.bfw.wiki/asset/logo.png"
filename = "largefile.zip"

# 开始下载文件
response = requests.get(url, stream=True)

total_size = int(response....

点击查看剩余70%

我知道答案,我要回答