摘要: 在 Python 中,有 2 种常用的字符串类型,分别为 str 和 bytes 类型,其中 str 用来表示 Unicode 字符,bytes 用来表示二进制数据。str 类型和 bytes 类型之间就需要使用 encode() 和 decode() 方法进行转换。 encode() 方法为字符串 阅读全文
posted @ 2021-08-14 14:37 Lzwhehe 阅读(123) 评论(0) 推荐(0)