Python base64编码解码实例,pythonbase64
Python base64编码解码实例,pythonbase64
Python中进行Base64编码和解码要用base64模块,代码示例:
#-*- coding: utf-8 -*- import base64 str = 'cnblogs' str64 = base64.b64encode(str) print str64 #Y25ibG9ncw== print base64.b64decode(str64) #cnblogs
相关内容
- Python中type的构造函数参数含义说明,python构造函数
- Python多线程和队列操作实例,python多线程队列
- Python文件读取的3种方法及路径转义,
- 让Python代码更快运行的5种方法,python代码运行5种
- Python ValueError: invalid literal for int() with base 10 实用解决方
- Python实现删除文件但保留指定文件,
- Python os模块学习笔记,pythonos学习笔记
- Python实现线程池代码分享,python线程池代码
- Python安装第三方库的3种方法,python第三方库3种
- Python的装饰器模式与面向切面编程详解,python切面
评论关闭