Curso-lenguaje-python/python-total/dia_09/07_modulo_comprimir_zipfile.py
Manuel Vergara f4e9797c4b Restructure content and add notes from HolaMundo
Signed-off-by: Manuel Vergara <manuel@vergaracarmona.es>
2023-05-20 09:36:26 +02:00

16 lines
204 B
Python

"""
Módulos comprimir y descomprimir
zipfile
"""
import zipfile
mi_zip = zipfile.ZipFile('archivo_comprimido.zip', 'w')
mi_zip.write('mi_texto_A.txt')
mi_zip.write('mi_texto_B.txt')
mi_zip.close()