首页 > python3.4.1下base64编码问题

python3.4.1下base64编码问题

如图

import base64

encodestr = base64.b64encode('abc'.encode(encoding='utf-8'))
print(encodestr)

求大牛!


你运行的文件名为 base64.py。把标准模块 base64给覆盖了,相当于自己导入自己。把 base64.py改一下文件名。

【热门文章】
【热门文章】