- 帖子
- 5
- 精华
- 0
- 积分
- 22
- 阅读权限
- 10
- 注册时间
- 2016-5-22
- 最后登录
- 2016-7-9
|
crossin先生 发表于 2016-5-23 14:16
说详细点,详细报错。这个问题有很多可能。可能你因为是 windows,也可能因为你文件保存的时候选了BOM模式 ...
Traceback (most recent call last):
File "C:\Python27\编写的程序\lession44-查天气.py", line 8, in <module>
from city import city
File "C:\Python27\编写的程序\city.py", line 2
SyntaxError: Non-ASCII character '\xe5' in file C:\Python27\编写的程序\city.py on line 2, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
这是错误~~
我是windows的 |
|