Wednesday, October 28, 2015

compress test using zlib in python


import zlib
s = 'hello world!hello world!hello world!hello world!'
t = zlib.compress(s)
print t
print zlib.decompress(t)