python报错:SyntaxError: Non-ASCII character ‘\xef’ in file D:\python test file\test.py on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
错误格式:
改正:
只需要把# -- coding:UTF-8 --换到第一行就可以解决问题
python报错:SyntaxError: Non-ASCII character ‘\xef’ in file D:\python test file\test.py on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
错误格式:
改正:
只需要把# -- coding:UTF-8 --换到第一行就可以解决问题