摘要: var optionalString: String? = "facial"; var greeting = "hi"; if let name = optionalString { //把optionalString复制给一个临时变量 name. 可以判断optionalString是否有值, g 阅读全文
posted @ 2016-03-08 15:38 facial 阅读(311) 评论(0) 推荐(0) 编辑
摘要: There’s an even simpler way to include values in strings: Write the value in parentheses, and write a backslash (\) before the parentheses. This is kn 阅读全文
posted @ 2016-03-08 14:46 facial 阅读(147) 评论(0) 推荐(0) 编辑