unicode码def is_cn_char(i): return 0x4e00<=ord(i)<0x9fa6def is_cn_or_en(i): o = ord(i) return o<128 or 0x4e00<=o<0x9fa6