Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: LZ77 压缩划痕
我正在构建 LZ77 压缩。我已将整个文件作为单个字符串读取并尝试对其进行压缩。还有其他方法吗?
假设“放气”是“lz77”的意思,是的,有。您可以创建Compress对象,然后compress在其上调用多次方法。更多在这里(搜索Compress.compress(string)):
Compress
compress
Compress.compress(string)
http://docs.python.org/2/library/zlib.html