通过判断字符的编码大小来确定字符  “C”  是否是中文,不同编码中字符编码大小不同。

1、utf-8编码

 '\u4e00' <= ch <= '\u9fff'

2、unicode编码

 c>=u'\u4e00' and c<=u'\u9fa5'     

相关文章: