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

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

04-13 16:11