使用可以压缩字符串。使用可以解压字符串。如下:
#-*-coding:utf-8-*-
import zlib
s="hello world,0000000000000000000000000000"
print len(s)#输出 40
c=(s)
print len(c)#输出22
d=(c)
print d#输出hello world,0000000000000000000000000000
使用可以压缩字符串。使用可以解压字符串。如下:
#-*-coding:utf-8-*-
import zlib
s="hello world,0000000000000000000000000000"
print len(s)#输出 40
c=(s)
print len(c)#输出22
d=(c)
print d#输出hello world,0000000000000000000000000000