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

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

posted on 2020-09-10 10:33  cag2050  阅读(1259)  评论(0编辑  收藏  举报

导航