企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
``` str1 = b'MzI3:NTA5' c2 = str(str1).split(':') c3 = str(str1,'utf-8').split(':') c4 = b'\u5f7c\u0028\u304b\u0029\u306e\u592b\u4eba\u306e\u61d0\u4e2d\u304b\u3089' c5 = str(c4,'utf-8') print(c2) print(c3) print(c4) print(c4.decode('unicode_escape').encode()) print(c4.decode('unicode_escape')) print(c4.decode('raw_unicode_escape')) c6 = c4.decode('unicode_escape').encode() ``` ``` c4 = b'\u5f7c\u0028\u304b\u0029\u306e\u592b\u4eba\u306e\u61d0\u4e2d\u304b\u3089' c6 = c4.decode('unicode_escape').encode() print(c6) print(c6.decode()) print(c4.decode()) ``` ``` str10 = b'\xe7\xbb\x9d\xe5\x9c\xb0\xe6\xb1\x82\xe7\x94\x9f' print(str10) print(str10.decode()) print(str10.encode()) ``` ``` a = '朝阳' b = a.encode() print(b) c = b.decode() print(c) ``` ``` str10 = b'\xe7\xbb\x9d\xe5\x9c\xb0\xe6\xb1\x82\xe7\x94\x9f' print(str10) print(str10.decode('GBK')) print(str10.encode()) ``` ``` a = '朝阳' b = a.encode('GBK') #d = a.encode() e = a.encode('GB2312') print(b) #print(d) print(e) c = b.decode('GBK') print(c) ``` ``` a = '游戏' ```