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