橘子味的心
标题:Python3 字符串String Encode

Python3 字符串String Encode

#!/usr/bin/python3
import base64

Str = "this is string example....wow!!!"
Str = base64.b64encode(Str.encode('utf-8',errors = 'strict'))

print ("Encoded String: " , Str)

目录

分类