我尝试在gui(Tkinter)中使用sqlite3,当我试图使用geany编译代码时,它返回以下错误
File "/home/armando/Documents/curso/python_projects/sqlite3.py", line 3
SyntaxError: Non-ASCII character '\xc3' in file /home/armando/Documents/curso/python_projects/sqlite3.py on line 3, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
我怎么解决这个问题?在
谢谢
光明与和平!在
见pep 263-http://legacy.python.org/dev/peps/pep-0263/
必须在源模块的顶部声明编码:
用保存文件时使用的任何编码替换utf-8。在
相关问题 更多 >
编程相关推荐