语法(只简单介绍使用)
urllib.request.urlretrieve(url, filename=None, reporthook=None, data=None)
其中,url为下载网址,filename为存储路径
【sample】以下载luna16数据集中annotations.csv文件为例
In [1]: import urllib
In [2]: urllib.request.urlretrieve("https://zenodo.org/record/3723295/files/annotations.csv?download=1", "C:\\annotations.csv")
Out[2]: ('C:\\annotations.csv', <http.client.HTTPMessage at 0xab03b38>)