// Swift区间运算符 // 闭区间 for index in 1...10 { index } // 前闭后开区间 let cour = ["he","hong","bo"]; for i in 0..<cour.count { cour[i] }
// Swift区间运算符 // 闭区间 for index in 1...10 { index } // 前闭后开区间 let cour = ["he","hong","bo"]; for i in 0..<cour.count { cour[i] }