文章首发于:http://80sdianying.xyz/?id=10
直接附上代码,其中的value是base64格式的数据,pic.jpg则是我们保存的图片名。
img = base64.b64decode(value)
fh = open("pic.jpg","wb")
fh.write(img)
fh.close()
文章首发于:http://80sdianying.xyz/?id=10
直接附上代码,其中的value是base64格式的数据,pic.jpg则是我们保存的图片名。
img = base64.b64decode(value)
fh = open("pic.jpg","wb")
fh.write(img)
fh.close()