Python 字符串转Base64编解码

来源:https://www.cnblogs.com/kanneiren/p/9981084.html

strInput="A319060267"
bs=str(base64.b64encode(strInput.encode('utf-8')),"utf-8")
print('转码:'+bs)
print('解码:'+str(base64.b64decode(bs),"utf-8"))

猜你喜欢

转载自www.cnblogs.com/Alex-Mercer/p/11950955.html