相关疑难解决方法(0)

如何在urlretrieve中使用Progressbar模块

我的pyhton3脚本使用urlretrieve通过Internet下载了许多图像,我想为每个下载添加进度条,其中包含完成的百分比下载速度

进度模块似乎是一个很好的解决方案,不过虽然我已经通过看他们的榜样范例4似乎是正确的事情,我仍然无法理解如何将它环绕的urlretrieve

我想我应该添加第三个参数:

urllib.request.urlretrieve('img_url', 'img_filename', some_progressbar_based_reporthook)
Run Code Online (Sandbox Code Playgroud)

但是如何正确定义呢?

python python-3.x progress-bar

4
推荐指数
2
解决办法
3466
查看次数

标签 统计

progress-bar ×1

python ×1

python-3.x ×1