当前位置: 代码迷 >> 综合 >> python中判断字符是否为中文
  详细解决方案

python中判断字符是否为中文

热度:25   发布时间:2024-01-16 12:28:53.0
def is_Chinese(word):for ch in word:if '\u4e00' <= ch <= '\u9fff':return Truereturn False

 

  相关解决方案