Unzip dalam Python
import zipfile
with zipfile.ZipFile(path_to_zip_file, 'r') as zip_ref:
zip_ref.extractall(directory_to_extract_to)
Happy Herring
import zipfile
with zipfile.ZipFile(path_to_zip_file, 'r') as zip_ref:
zip_ref.extractall(directory_to_extract_to)
import zipfile
path = '/path_to_your/zip_file'
zip_ref = zipfile.ZipFile(path,'r')
zip_ref.extractall(directory_to_extract) # or leave blank to extract to current directory