Python base64编码解码实例
Python base64编码解码实例
发布时间:2016-12-28 来源:查字典编辑
摘要:Python中进行Base64编码和解码要用base64模块,代码示例:#-*-coding:utf-8-*-importbase64str...

Python中进行Base64编码和解码要用base64模块,代码示例:

#-*- coding: utf-8 -*- import base64 str = 'cnblogs' str64 = base64.b64encode(str) print str64 #Y25ibG9ncw== print base64.b64decode(str64) #cnblogs

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新python学习
热门python学习
脚本专栏子分类