EvilZone
Programming and Scripting => Scripting Languages => : fox12345 October 12, 2013, 06:13:04 AM
-
import zipfile
A = zipfile.ZipFile("A.zip", "w")
A.write("12345.txt")
A.close()
-
You can't directly with the standard library.
You can however, open a subprocess or make a system call to a shell utility like zip, 7zip or whatever is applicable.