1
2
3
import base64

base64.b64encode(b'Hello world')

参考

  1. https://docs.python.org/3/library/base64.html#module-base64

留言

2015-09-06