//: ## 屌炸天的字符串
//: 字符串插值是一种强大的创建字符串的方法。除了把占位符替换成字符串类型的值，你还可以替换成其他类型的值，比如数字，甚至是一个计算公式。
let goalieName = "Alison"
let firstHalfSaves = 3
let secondHalfSaves = 6
let overtimeSaves = 2
let goalieReportString = "At the game yesterday, \(goalieName) had \(firstHalfSaves) saves in the first half, \(secondHalfSaves) in the second half and \(overtimeSaves) saves in overtime, for a total of \(firstHalfSaves + secondHalfSaves + overtimeSaves) saves."
//:
/*:
//: - callout(练习): 填字游戏是一个很多人玩的游戏。你可以在playground中写一个填字游戏的简单版本：
    - 自己写一个简单的填字游戏，也可以直接使用下面的故事。
    - 为每个空格创建字符串或数字常量。
    - 使用字符串插值填充故事中的空白部分。

    示例故事： “Today was a big day for <name>. They had finally saved up <number> dollars and were going to buy a <adjective> <noun>. They went to the <noun> <place> feeling very <positive emotion>. But then they felt <negative emotion>. They were all out of <noun>!”
 */
// 在这下面写一个你自己的故事


//: 
//: 
//: 接下来你会看到更多关于字符串的使用技巧。
//: 
//:[上一页](@previous)  |  第9页，共16页  |  [下一页: 转义字符](@next)
