本文主要是介绍SyntaxError: Non-ASCII character '\xe6' in file a.py on line 1, but no encoding declared; see http:/,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在Python中输出中文时
SyntaxError: Non-ASCII character '\xe6' in file a.py on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for de
编码问题:
在编写的文件开头添加这样一行代码 # -*- coding: utf-8 -*-
这篇关于SyntaxError: Non-ASCII character '\xe6' in file a.py on line 1, but no encoding declared; see http:/的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!