We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 803856d + 5ffffc2 commit 7e5c020Copy full SHA for 7e5c020
Roadmap/41 - CAMISETA RAR/python/pyramsd.py
@@ -0,0 +1,11 @@
1
+import zipfile
2
+
3
+def compress_file(file_path, output_zip):
4
+ with zipfile.ZipFile(output_zip, 'w', zipfile.ZIP_DEFLATED) as zipf:
5
+ zipf.write(file_path, arcname=file_path.split("/")[-1])
6
7
+file = "D:\\Programacion\\comandos importantes de git.txt"
8
+output = "archivo.zip"
9
10
+compress_file(file, output)
11
+print(f"Archivo comprimido creado: {output}")
0 commit comments