import bz2 import base64 message = \'字典是python中唯一的映射类型\' unzip_string = bz2.compress(message) a = base64.encodestring(unzip_string) print a c = base64.decodestring(a) unzip_string = bz2.decompress(c) print unzip_string
相关文章:
- 【转】python的zipfile压缩、解压缩 2021-09-19
- 压缩 解压 压缩率 2022-12-23
- python解压压缩包 2021-11-21
- python tar 压缩解压 2021-12-12
- 压缩及解压缩 2021-12-31
- JS.压缩&解压缩 2021-11-04
- 压缩和解压缩 2021-11-01
- 压缩与解压缩 2021-08-11