代码:

print(u'服务正在运行...http://localhost:8080')

错误:

SyntaxError: Non-ASCII character ‘\xe6’ in file F:\iCode\aptana\hello_python\src\index.py on line 20, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

解决方式:

在文件顶部加入:

# coding=utf-8