import zipfile
f = zipfile.ZipFile("hy-tmp/Tip_adatper/Tip-Adapter-main.zip",'r') # 压缩文件在jupyter中的位置(注意区分是本地路径还是远程服务器路径)
for file in f.namelist():
f.extract(file,"hy-tmp/Tip_adatper") # 解压到的位置
f.close()
如何解压jupyter notebook中的zip压缩文件
于 2022-08-31 14:50:33 首次发布