在Python 2.7中,为什么有时它在使用zlib.decompress()后无法打印

时间:2014-12-22 13:01:27

标签: python python-2.7 zlib

代码是:

import zlib;
s="witch which has which witches wrist watch";
z=zlib.compress(s);
print(len(s));
print(len(z));
print(s);
print(z,"\n");
a=zlib.decompress(z);
print(a);#here,in console sometimes will stop at here 
print(zlib.crc32(s));

为什么?有关缓冲区的错误?

0 个答案:

没有答案