❶ python判断字符串是否有中文符号
defis_chinese(s):count=0foriins:if(i>=u'u4e00')and(i<=u'u9fa5'):returnTruebreakelse:count+=1ifcount==len(s):returnFalse然后检查有没有中文就输is_chinese('内容'),记住括号里的字符串要加引号