利用...来字符检测(swift)
by 伍雪颖
let test =
"LesvIo"
let interval =
"a"..."z"
for c
in test {
if !interval.contains(String(c))
{
println("\(c)
not lower")
}
}
版权声明:本文为博主原创文章,未经博主允许不得转载。
时间: 2024-10-17 18:56:06
by 伍雪颖
let test =
"LesvIo"
let interval =
"a"..."z"
for c
in test {
if !interval.contains(String(c))
{
println("\(c)
not lower")
}
}
版权声明:本文为博主原创文章,未经博主允许不得转载。