摘要: 参考链接: http://www.cocoachina.com/ios/20170921/20623.html https://www.lee1994.com/guan-yu-iphone/ http://www.jianshu.com/p/3a9ad4f0fa32?appinstall=0 htt 阅读全文
posted @ 2017-11-01 16:08 鳄鱼不怕牙医不怕 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 使用 func 来声明一个函数,使用名字和参数来调用函数。使用 -> 来指定函数返回值的类型。 func greet(person: String, day: String) -> String { return "Hello \(person) , today is \(day)." } gree 阅读全文
posted @ 2017-11-01 00:55 鳄鱼不怕牙医不怕 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 使用 if 和 switch 来进行条件操作,,使用 for-in 、for 、while 和 repeat-while 来进行循环。包裹条件和循环变量括号可以省略,但是语句的大括号是必须的。 let individualScores = [75, 43, 103, 87, 12] var team 阅读全文
posted @ 2017-11-01 00:21 鳄鱼不怕牙医不怕 阅读(134) 评论(0) 推荐(0) 编辑