时间:2020-10-25 09:50:45 | 栏目:Python代码 | 点击:次
如下所示:
#########start根据url地址下载小文件############ def download_little_file(from_url,to_path): conn = urllib.urlopen(from_url) f = open(to_path,'wb') f.write(conn.read()) f.close() #########end根据url地址下载小文件############