Я пробовал это сделать:
Код: Выделить всё
name = "your name"
print('encoding %s in base64 yields = %s\n'%(name,name.encode('base64','strict')))
Код: Выделить всё
LookupError: 'base64' is not a text encoding; use codecs.encode() to handle arbitrary codecs
Подробнее здесь: https://stackoverflow.com/questions/231 ... -in-python
Мобильная версия