python执行编译的时候报错
F:\python\python.exe F:/python_code/test/venv/Shan.py
File "F:/python_code/test/venv/Shan.py", line 7
SyntaxError: Non-ASCII character '\xe7' in file F:/python_code/test/venv/Shan.py on line 7, but no encoding declared; see http://www.python.org/peps/pep-0263.html for detailsProcess finished with exit code 1
解决方法,在文件的开头加上入下代码即可
# -*- coding:utf-8 -*-