1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var str = "l我o是v中e文123456789"

func judgeStringIncludeChineseWord(string: String) -> Bool {

for (_, value) in string.characters.enumerated() {

if ("\u{4E00}" <= value && value <= "\u{9FA5}") {
return true
}
}

return false
}

let result = judgeStringIncludeChineseWord(string: str)