返回顶部
摘要: python3 解释器默认编码为Unicode,由str类型进行表示。二进制数据使用byte类型表示。 字符串通过编码转换成字节串,字节码通过解码成为字符串。 encode:str-->bytes decode:bytes --> str 下面给出一个实例: 1 mystr = '人生苦短,我学Py 阅读全文
posted @ 2019-08-13 13:22 Be-myself 阅读(12731) 评论(0) 推荐(1) 编辑
levels of contents 点击查看具体代码内容