解决Python使用中文报错的方法

SyntaxError: Non-ASCII character

在代码开头加上

# coding: utf-8

IndentationError: unexpected indent 是缩进的问题,也有可能是tab和空格混用

posted @ 2012-05-15 10:38  klobodnf  阅读(328)  评论(0编辑  收藏  举报