当文件出现
File "E:/git_python/git_py/无用文件/222.py", line 2
SyntaxError: Non-UTF-8 code starting with '\xe8' in file E:/git_python/git_py/无用文件/222.py on line 2, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
可通过在文件首处加
# -*- coding:utf-8 -*-
解决