一个极小的问题。在python代码中,用了中文注释,不能被python解释器理解(python 2.5)。解决方案是: # coding=gb2312 print 'ok' # 中文注释没问题 或者: # -*- coding: gb2312 -*- print ' ok ' # 这样也行