读写文件都要将中文转为unicode字符。
读文件:
u = unicode(s, ‘gbk’) 这里不能使用encode
写文件:
u = encode(‘utf’)
贡献者
分享
程序员志勇
这家伙很懒,只想把你留下。
该资源仅限VIP专享下载