SyntaxError: Non-ASCII character '\xe5' in file H:\workspace\output\out\out.py on line 4, but no enc

来源:互联网 发布:流程图软件visio下载 编辑:程序博客网 时间:2024/06/10 16:18

eclipse+python2.7,编写hello world出错。因为注释中有中文无法识别,在代码最前加上

#coding:utf-8

就ok了~

0 0