Python中怎么识别中文字符?

理由不太清楚,但能解决问题:
if '\u4e00'<= ele <= '\u9fff': print('ele是中文字符')

posted @ 2020-07-28 17:18  小酷蛙  阅读(1075)  评论(0)    收藏  举报