码迷,mamicode.com
首页 > 编程语言 > 详细

SyntaxError: Non-ASCII character '\xe5' in file a.py on line 9, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

时间:2014-06-24 22:13:37      阅读:443      评论:0      收藏:0      [点我收藏+]

标签:http   文件   html   for   htm   line   

SyntaxError: Non-ASCII character ‘\xe5‘ in file a.py on line 9, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

 

在文件头部加:

 

#-*-coding:utf-8-*-

SyntaxError: Non-ASCII character '\xe5' in file a.py on line 9, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details,布布扣,bubuko.com

SyntaxError: Non-ASCII character '\xe5' in file a.py on line 9, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

标签:http   文件   html   for   htm   line   

原文地址:http://www.cnblogs.com/yanyuge/p/3805742.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!