Python_zip&rar

Source: Internet
Author: User
Tags zipinfo

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.