1、decode将二进制数据解码成unicode编码:str.decode('utf-8')表示将utf-8的编码字符串解码成unicode编码
2、encode将unicode编码的字符串编码解码成二进制数据:str.encode('utf-8')表示将unicode编码的字符串编码成utf-8
Copyright © 2025 zhuyu123 Powered by .NET 9.0 on Kubernetes