big problem!

big problem!

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

means what?
http://www.python.org/peps/pep-0263.html
解释的很详细

简单说就是源文件的编码问题导致的,看看官方给出的解决方法吧:
    To define a source code encoding, a magic comment must
    be placed into the source files either as first or second
    line in the file, such as:

          # coding=<encoding name>

    or (using formats recognized by popular editors)

          #!/usr/bin/python
          # -*- coding: <encoding name> -*-

    or

          #!/usr/bin/python
          # vim: set fileencoding=<encoding name> :
在前面加了#coding=utf-8.还是通不过...用IDLE 和KDEVELOPMENT就没有这个问题.直接PYTHON FILENAME就有问题.郁闷
还是编码的问题,如果你python filename有问题,说明console默认的编码跟idle和KDEVELOPMENT不一样!
# -*- coding: cp936 -*-