判断字符串是否在中文编码范围内 

for c in s:
        if not ('\u4e00' <= c <= '\u9fa5'):
            return False
    return True

相关文章:

  • 2022-01-13
  • 2022-12-23
  • 2022-03-06
  • 2021-06-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-31
  • 2022-01-31
  • 2021-10-15
  • 2022-01-07
相关资源
相似解决方案