执行python文件报错SyntaxError: Non-ASCII character '\xe8' in file, but no encoding declared

在文件头部加上:


# -*- coding: utf-8 -*