March 2003
Intermediate to advanced
656 pages
39h 30m
English
write
z.write(filename,arcname=None,compress_type=None)Writes the file named by string filename
to archive z, with archive member name
arcname. When
arcname is None,
write uses filename as
the archive member name. When
compress_type is None,
write uses
z’s compression type;
otherwise, compress_type is
zipfile.ZIP_STORED or
zipfile.ZIP_DEFLATED, and specifies how to
compress the file. z must be opened for
'w' or 'a‘.