1 ImportZipFile2Fp=zipfile. ZipFile ('/users/c2apple/desktop/color display/Asahi Wei Xw-6600.zip','R')3 forFinchfp.filelist:4 Print(f)5 #<zipinfo filename= ' Xu Wei xw-6600/' external_attr=0x10>6 #<zipinfo filename= ' Xu Wei Xw-6600/Xu Wei XW-6600 electric control System test report. xlsx ' Compress_type=deflate external_attr=0x20 file_size= 187504 compress_size=31789>7 #<zipinfo filename= ' Xu Wei xw-6600/xu Wei XW-6600 blue screen Functional test report. xlsx ' Compress_type=deflate external_attr=0x20 file_size= 15064 compress_size=12014>8 #<zipinfo filename= ' Xu Wei xw-6600/xu Wei XW-6600 blue screen Software test report. xlsx ' Compress_type=deflate external_attr=0x20 file_size= 15734 compress_size=12495>9 fp.close ()Ten One ImportRarfile AR=rarfile. Rarfile ('/users/c2apple/desktop/color screen. rar') - forFinchr.namelist (): - Print(f) the #output The file list under the RAR file - #Screen /zd-qr-730112 Electronic control System test report version 00. xlsx - #color/zd-qr-730114 color screen Software test report version 00. xlsx - #color/zd-qr-730115 Color display Functional test report version 00. xlsx + #Color display/Ascension Test form. xlsx - #Color screen/problem description. doc + #Color AR.close ()
Python_zip&rar