因为 encodestring 是 python2 的语法,在 python3 已经用别的方法取代它了,所以在 python3 环境导入base64.encodestring 会失败,但是在 python2 环境可以导入成功。
Python3 base64 导入不了encodestring
原创
©著作权归作者所有:来自51CTO博客作者Lucky小黄人的原创作品,请联系作者获取转载授权,否则将追究法律责任
下一篇:charles断点调试
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
JS选择图片获取base64编码预览图片
通过将图片转为data url的base64格式编码,实现直接预览图片
图片预览 base64 dataurl 图片转base64