import zipfile, os
      
      with zipfile.ZipFile(zipfile) as zip_file:
        zip_file.extractall()

      Python language logo
      Extract zipfile

      Python public recipes

      The code creates a ZipFile object and extracts all files from the myfile.zip file.

      Shortcut: zipfile.extract

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.