摘要: 直接上代码: from tqdm import tqdm import zipfile def unzip(zipFile): '''把ZIP文件解压到以文件名命名的目录中''' # 获得文件名(不含后缀),作为解压缩的目录 dir_name = os.path.dirname(zipFile) # 阅读全文
posted @ 2023-09-17 22:13 顺其自然,道法自然 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 我实现了一个函数, 代码如下: def download_file_from_url(url, save_path='', callback:callable = None): ''' 下载文件, 并保存到save_path指定的位置 url: 形如'http://www.tdx.com.cn/pr 阅读全文
posted @ 2023-09-17 11:54 顺其自然,道法自然 阅读(112) 评论(0) 推荐(0) 编辑