Python3 base64 导入不了encodestring

因为 encodestring 是 python2 的语法,在 python3 已经用别的方法取代它了,所以在 python3 环境导入base64.encodestring 会失败,但是在 python2 环境可以导入成功。

原文地址:https://www.cnblogs.com/hi3254014978/p/15731890.html