在 Python3 中,bytes 和 str 的互相转换方式是:str.encode('utf-8')、bytes.decode('utf-8') 相关文章: 2021-07-17 2022-12-23 2022-12-23 2022-12-23 2021-10-13 2021-07-01 2022-12-23