20190525

Posted pie-o

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了20190525相关的知识,希望对你有一定的参考价值。

##############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的主要内容,如果未能解决你的问题,请参考以下文章