摘要: 搭建 python 的 eclips环境后写了一个测试程序。结果出现这样的错误:SyntaxError: Non-ASCII character '\xbd' in file E:\workspace\makeUpdatafilesIndex\src\makeIndex.py on line 12, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details原因是它不能识别中文编码。要在第一行加入# -*- coding: GBK -*-Python中有两种字符串,分别是一 阅读全文
posted @ 2011-08-10 23:35 xyecho 阅读(381) 评论(0) 推荐(0) 编辑