Python中进行Base64编码和解码要用base64模块,代码示例:
#-*- coding: utf-8 -*- import base64 str = 'cnblogs' str64 = base64.b64encode(str) print str64 #Y25ibG9ncw== print base64.b64decode(str64) #cnblogs
已抢186481个
抢已抢67260个
抢已抢352942个
抢已抢667106个
抢已抢122153个
抢已抢23271个
抢