你这样 import base64 str1 = "this is string example" print (str1) str1 = str1.encode(encoding ='utf-8',errors = 'strict') # 先转成bytes 的string print (str1) str2= base64.b64encode(str1) # 再使用base64.b64e
专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]
Copyright (C)ICode9.com, All Rights Reserved.
ICode9版权所有