X-man

导航

2015年11月9日 #

Python 文件编码(文件乱码)

摘要: IndentationError: unindent does not match any outer indentation level 文件未对齐,在记事本打开。 乱码原因:源码文件的编码格式为utf-8,但是window的本地默认编码是gbk,所以在控制台直接打印utf-8的字符串当然是乱码了 阅读全文

posted @ 2015-11-09 17:15 雨钝风轻 阅读(1245) 评论(0) 推荐(0) 编辑