bytes
摘要:
##定义一个bytes类型: a = b'老王' python2——————a.decode('utf-8') == a.u'老王' 在python2中定义的啥类型的编码格式就用啥编码格式 否则会报错 python2 存储到内存中的是bytes类型 python3 —————— a.decode(' 阅读全文
posted @ 2018-10-14 22:11 别离 阅读(356) 评论(0) 推荐(0) 编辑
posted @ 2018-10-14 22:11 别离 阅读(356) 评论(0) 推荐(0) 编辑