py3中的文字编码

Python3 中字符的类型只有两种:

  • str: 编码过的 unicode 文本字符
  • bytes: 编码前的字节序列

 

posted @ 2017-11-13 16:17  月河  阅读(130)  评论(0编辑  收藏  举报