python中判断字符串是否为中文 判断字符串是否在中文编码范围内 for c in s: if not ('u4e00' <= c <= 'u9fa5'): return False return True