摘要: 在python中,编码解码其实是不同编码系统间的转换,默认情况下,转换目标是Unicode,即编码unicode→str,解码str→unicode,其中str指的是字节流,而str.decode是将字节流str按给定的解码方式解码,并转换成utf-8形式,u.encode是将unicode类按给定 阅读全文
posted @ 2017-11-09 16:03 shy车队破风手 阅读(2281) 评论(0) 推荐(0) 编辑