如何使用lzo-1.0.8(Python 2.7.9)在Python中解压缩字节? [英] How to decompress bytes in Python using lzo-1.0.8 ( Python 2.7.9)?

查看:114
本文介绍了如何使用lzo-1.0.8(Python 2.7.9)在Python中解压缩字节?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个从网络接收到的压缩字节数组,它是LZO压缩的.我需要使用LZO解压缩它.我已经为python安装了 python-lzo-1.0.8 软件包,并在Python Shell中进行了检查,它的安装正确,但是我找不到任何有关如何使用LZO解压缩的参考或任何有关Python的文档-lzo.有人可以帮我吗?

I have a compressed byte array received from network and it is LZO Compressed. I need to decompress it using LZO. I already installed the python-lzo-1.0.8 package for python and I checked in the Python Shell, its properly installed but I cannot find any reference on how to use the LZO Decompression or any Documentation for python-lzo. Can anybody help me with this?

推荐答案

您可以查看简而言之:

import lzo
d = lzo.decompress(lzo_compressed_bytearray)

这篇关于如何使用lzo-1.0.8(Python 2.7.9)在Python中解压缩字节?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆