摘要: 要注意区分'ABC'和 b'ABC',前者是 str,后者虽然内容显示得和前者一样,但 bytes 的每个字符都只占用一个字节 string.encode()编码 string.decode()解码 # -*- coding: utf-8 -*- 是为了告诉 Python 解释器,按照 UTF-8 阅读全文
posted @ 2018-12-18 22:25 charles7987 阅读(90) 评论(0) 推荐(0) 编辑