摘要:        
python3的编码问题一直比较简单 内存中字符串采用unicode 存储到文件中采用utf-8 以下为str,byte互相转换的过程:str = "abc学习"strOut[6]: 'abc学习'mybyte = str.encode("utf-8")mybyteOut[8]: b'abc\xe5\xad\xa6\xe4\xb9\xa0'str2 = mybyte.decode("utf-8")...    阅读全文
posted @ 2017-12-05 10:55
绿色的麦田
阅读(8944)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号