Python3 中,bytes 和 str

在 Python3 中,bytes 和 str 的互相转换方式是
str.encode('utf-8')
bytes.decode('utf-8')

posted @ 2021-09-05 22:31  yongqi-911  阅读(43)  评论(0)    收藏  举报