📜  python3 下载文件 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:11.755000             🧑  作者: Mango

代码示例1
import urllib.request

print('Beginning file download with urllib2...')

url = 'http://i3.ytimg.com/vi/J---aiyznGQ/mqdefault.jpg'
urllib.request.urlretrieve(url, '/Users/scott/Downloads/cat.jpg')