参考如下代码(from:https://stackoverflow.com/questions/36285502/how-to-extract-zip-file-recursively-in-python): import os import io import zipfile def extract(filename): z = zipfile.ZipFile(filename) for f in z.namelist(): # get directory name from file dir…