常见方法:
base64.encodebytes()
参数:
接收一个字节对象。
返回值:
返回base64编码的数据(以‘\n‘结尾的数据)。
base64.decodebytes()
返回base64编码之前的值。
python学习之base64模块
原文:http://www.cnblogs.com/leomei91/p/7824822.html