摘要: #基础语法 ##if-else let age =4 for(区间) let rang = ...10 rang.contains(11) //false rang.contains(6) ..ture ###带间隔的区间值 for tickMark in stride(form: 4, throu 阅读全文
posted @ 2020-08-09 23:27 千面客 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 枚举 一般情况 enum Sorce { case y case x } let direction: Sorce = .x 结果: x rawValue enum Direction: String { case north = "N" case south = "S" case east = " 阅读全文
posted @ 2020-08-09 23:26 千面客 阅读(108) 评论(0) 推荐(0) 编辑