Python base64编码解码实例
时间:2021-05-16 09:37:54|栏目:Python代码|点击: 次
Python中进行Base64编码和解码要用base64模块,代码示例:
#-*- coding: utf-8 -*- import base64 str = 'cnblogs' str64 = base64.b64encode(str) print str64 #Y25ibG9ncw== print base64.b64decode(str64) #cnblogs
上一篇:python list等分并从等分的子集中随机选取一个数
栏 目:Python代码
本文标题:Python base64编码解码实例
本文地址:http://www.codeinn.net/misctech/122444.html






