SyntaxError: Non-ASCII character #-*- coding:utf-8 -*-
执行python报错
/usr/bin/python2.7 /root/demo.py
File "/root/demo.py", line 2
SyntaxError: Non-ASCII character '\xe5' in file /root/demo.py on line 3, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
Process finished with exit code 1
在程序第一行添加
#-*- coding:utf-8 -*-
大数据流动 专注于大数据实时计算,数据治理,数据可视化等技术分享与实践。
请在后台回复关键字下载相关资料。相关学习交流群已经成立,欢迎加入~