首页 > 其他 > 详细

20190525

时间:2019-05-26 00:32:55      阅读:137      评论:0      收藏:0      [点我收藏+]

##############encoding format#######################

plain text stored at the disk by encoding which some specifical encode format,such as utf8,gbk

py2:

str=bytes

str:bytes(stored the same format that bytes serials)(\xe8\xf0\x2a)

unicode:unicode(\u8881\u5d68)

 py3:

bytes,str

file (encode:utf8>>>)disk(read>>>)memory(interpraput>>>)#coding:[defaultcodeformat](py3 is utf8)

20190525

原文:https://www.cnblogs.com/pie-o/p/10924582.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!