eclipse for python
|
|
居然报错,SyntaxError: Non-ASCII character '\xd6' in file F:\python\src\frist.py on line 2, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
但是在idle中没有问题,可以输出。
经过google大师的指引,找到一片文章,说要在文件头加入# -*- coding: gb18030 -*-
才能支持中文。试验了下真的成功了。
相关文章
Windows Vista 零售版改 OEM 版本免激活的原理
Windows Vista 零售版改 OEM 版本免激活的原理...2007-02-02
persits.jpeg.1 Invaild 5th argument, must be a long integer
persits.jpeg.1 Invaild 5th argument, must be a long integer...2007-08-08
MSN Messenger 化繁为简(用 Visual Studio 2005 去掉 MSN 广告)
MSN Messenger 化繁为简(用 Visual Studio 2005 去掉 MSN 广告)...2007-04-04


最新评论