python判断字符是否是中文的代码如下: def isChinese(word): for ch in word: if 'u4e00' <= ch <= 'u9fff': return True return False 运行示例: 更多Python知识请关注Python自学网。