标签:style blog color sp div on log ad bs
import base64 f = open("m1.jpg", "rb") res = f.read() s = base64.b64encode(res) f = open("hello.txt","w") f.write(s)
python将图片转为base64编码
原文地址:http://www.cnblogs.com/code-style/p/4042654.html