SyntaxError: Non-ASCII character ‘\xe5‘ in file a.py on line 9, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
在文件头部加:
#-*-coding:utf-8-*-
SyntaxError: Non-ASCII character '\xe5' in file a.py on line 9, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
时间: 2024-11-06 07:47:33