firesnow
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

分类:

技术点:

相关文章:

  • 2021-11-21
  • 2021-12-12
  • 2021-12-31
  • 2021-08-11
  • 2021-08-16
  • 2022-01-19
猜你喜欢
  • 2021-11-21
  • 2021-11-21
  • 2021-11-21
  • 2021-12-31
  • 2021-09-29
  • 2021-08-23
  • 2022-12-23
相关资源
相似解决方案