SyntaxError: Non-ASCII character ‘\xe5‘ in file *** , but no encoding declared;see http://www.python
报错提示:SyntaxError: Non-ASCII character '\xe5' in file hbcactirrd_bak.py on line 17, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details解决:这是因为程序编码有问题,只需要在你程序开始的地方加入(程序最最顶
·
报错提示:
SyntaxError: Non-ASCII character '\xe5' in file hbcactirrd_bak.py on line 17, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
解决:
这是因为程序编码有问题,只需要在你程序开始的地方加入(程序最最顶端)以下代码即可:
#!usr/bin/python
# -*- coding: utf-8 -*-
更多推荐
已为社区贡献2条内容
所有评论(0)