2020年8月22日

【转】判断字符串是否是中文

摘要: 原文链接:https://www.jb51.net/article/153637.htm # 检验是否含有中文字符 def isContainChinese(s): for c in s: if ('\u4e00' <= c <= '\u9fa5'): return True return Fals 阅读全文

posted @ 2020-08-22 00:26 不知所以随风飘动 阅读(326) 评论(0) 推荐(0) 编辑

导航