import zipfile with zipfile.ZipFile(r'E:/Python爬蟲精進.zip','r') as f: for 檔案名 in f.namelist(): 資訊=f.getinfo(檔案名) 檔案名=檔案名.encode('cp437').decode('gbk') print(檔案名,資訊.file_size,資訊.compress_size)
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/88106.html
標籤:Python
上一篇:當面試官問你:如何進行性能優化?
