摘要:
#str:unicode bytes:十六进制 #编码过程 s='hello龙飞' b1=bytes(s,'utf8') #编码方式一 print(b1) #执行结果为:b'hello\xe9\xbe\x99\xe9\xa3\x9e' b2=s.encode('utf8') #编码方式二 print 阅读全文
posted @ 2021-10-13 11:20
longfei825
阅读(283)
评论(0)
推荐(0)
浙公网安备 33010602011771号