时间:2021-07-01 10:21:17 帮助过:34人阅读
import zlib import struct import sys pvr = sys.argv[1] ccz = pvr + ".ccz" pvr = open(pvr).read() ccz = open(ccz, "wb") ccz.write(struct.pack(">4sHHII","CCZ!",0,1,0,len(pvr))) ccz.write(zlib.compress(pvr)) ccz.close()
希望本文所述对大家的Python程序设计有所帮助。