SyntaxError: Non-UTF-8 code starting with ‘\xb3‘ in file 原因:代码里有中文,这个中文没有用utf-8的编码格式。 解决办法(二选一): 1,删除中文 2,在python文件的第一行写# coding:utf-8 。要包括井号。