利用...来字符检測(swift)

利用...来字符检測(swift)

by 伍雪颖

let test = "LesvIo"
let interval = "a"..."z"
for c in test {
   
if !interval.contains(String(c)) {
       
println("\(c) not lower")
    }
}

posted @ 2016-03-28 16:04  zfyouxi  阅读(112)  评论(0编辑  收藏  举报