import urllib.request # 打开URL并保存为指定文件 urllib.request.urlretrieve('http://www.baidu.com','test.html') 未完成,个人学习,仅供参考