1、Python编码错误的解决办法SyntaxError: Non-ASCII character '\xe5' in file
py文件最前面添加注解
#!/usr/bin/python # -*- coding: latin-1 -*-