SyntaxError: Non-UTF-8 code starting with '\xd1' in file drawtree.py on line 15, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
遇到如上编码问题:
SyntaxError: Non-UTF-8 code starting with ‘\xd1‘ in file drawtree.py on line 15, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
需要在代码起始部分加上
#coding:utf-8
即可解决问题
文章来自:http://www.cnblogs.com/simon930/p/6493055.html