diff --git a/chapter1/01_swift.html b/chapter1/01_swift.html index 18a7e16e..9f0a665c 100644 --- a/chapter1/01_swift.html +++ b/chapter1/01_swift.html @@ -46,7 +46,7 @@ -
翻译:numbbbbb
diff --git a/chapter1/02_a_swift_tour.html b/chapter1/02_a_swift_tour.html index 12c5b84b..c74d4e29 100644 --- a/chapter1/02_a_swift_tour.html +++ b/chapter1/02_a_swift_tour.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:numbbbbb diff --git a/chapter1/chapter1.html b/chapter1/chapter1.html index a6b4fdf7..a6d9a7da 100644 --- a/chapter1/chapter1.html +++ b/chapter1/chapter1.html @@ -46,7 +46,7 @@ -
+@@ -587,7 +587,7 @@-+ 欢迎使用 Swift
在本章中您将了解 Swift 的特性和开发历史,并对 Swift 有一个初步的了解。
diff --git a/chapter2/01_The_Basics.html b/chapter2/01_The_Basics.html index 8810740c..59fb5eac 100644 --- a/chapter2/01_The_Basics.html +++ b/chapter2/01_The_Basics.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:numbbbbb, lyuka, JaySurplus
diff --git a/chapter2/02_Basic_Operators.html b/chapter2/02_Basic_Operators.html index e3485168..79128345 100644 --- a/chapter2/02_Basic_Operators.html +++ b/chapter2/02_Basic_Operators.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:xielingwang
diff --git a/chapter2/03_Strings_and_Characters.html b/chapter2/03_Strings_and_Characters.html index ea9177b1..d91e5d39 100644 --- a/chapter2/03_Strings_and_Characters.html +++ b/chapter2/03_Strings_and_Characters.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:wh1100717
diff --git a/chapter2/04_Collection_Types.html b/chapter2/04_Collection_Types.html index 7b64f33b..8e099792 100644 --- a/chapter2/04_Collection_Types.html +++ b/chapter2/04_Collection_Types.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:zqp
diff --git a/chapter2/05_Control_Flow.html b/chapter2/05_Control_Flow.html index 780640e6..99dac727 100644 --- a/chapter2/05_Control_Flow.html +++ b/chapter2/05_Control_Flow.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:vclwei, coverxit, NicePiao
@@ -643,7 +643,7 @@ for _ in 1...power { println("\(base) to the power of \(power) is \(answer)") // 输出 "3 to the power of 10 is 59049" -这个例子计算 base 这个数的 power 次幂(本例中,是
+3的10次幂),从1(3的0次幂)开始做3的乘法, 进行10次,使用1到10的半闭区间循环。这个计算并不需要知道每一次循环中计数器具体的值,只需要执行了正确的循环次数即可。下划线符号_(替代循环中的变量)能够忽略具体的值,并且不提供循环遍历时对值的访问。这个例子计算 base 这个数的 power 次幂(本例中,是
3的10次幂),从1(3的0次幂)开始做3的乘法, 进行10次,使用1到10的闭区间循环。这个计算并不需要知道每一次循环中计数器具体的值,只需要执行了正确的循环次数即可。下划线符号_(替代循环中的变量)能够忽略具体的值,并且不提供循环遍历时对值的访问。使用
for-in遍历一个数组所有元素:let names = ["Anna", "Alex", "Brian", "Jack"] for name in names { diff --git a/chapter2/06_Functions.html b/chapter2/06_Functions.html index 818a9724..2d990ba9 100644 --- a/chapter2/06_Functions.html +++ b/chapter2/06_Functions.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:honghaoz
diff --git a/chapter2/07_Closures.html b/chapter2/07_Closures.html index 17373511..709901e9 100644 --- a/chapter2/07_Closures.html +++ b/chapter2/07_Closures.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:wh1100717
diff --git a/chapter2/08_Enumerations.html b/chapter2/08_Enumerations.html index b443497e..2da2075f 100644 --- a/chapter2/08_Enumerations.html +++ b/chapter2/08_Enumerations.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:yankuangshi
diff --git a/chapter2/09_Classes_and_Structures.html b/chapter2/09_Classes_and_Structures.html index 5aa6625f..97ca093f 100644 --- a/chapter2/09_Classes_and_Structures.html +++ b/chapter2/09_Classes_and_Structures.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:JaySurplus
diff --git a/chapter2/10_Properties.html b/chapter2/10_Properties.html index 36d45ff0..d02aabda 100644 --- a/chapter2/10_Properties.html +++ b/chapter2/10_Properties.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:shinyzhu
diff --git a/chapter2/11_Methods.html b/chapter2/11_Methods.html index 416d08bf..0e514a1a 100644 --- a/chapter2/11_Methods.html +++ b/chapter2/11_Methods.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:pp-prog
diff --git a/chapter2/12_Subscripts.html b/chapter2/12_Subscripts.html index b6d4af4e..12dfce3f 100644 --- a/chapter2/12_Subscripts.html +++ b/chapter2/12_Subscripts.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:siemenliu
diff --git a/chapter2/13_Inheritance.html b/chapter2/13_Inheritance.html index b913c241..825a2c5d 100644 --- a/chapter2/13_Inheritance.html +++ b/chapter2/13_Inheritance.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:Hawstein
diff --git a/chapter2/14_Initialization.html b/chapter2/14_Initialization.html index ac040dc2..b718c296 100644 --- a/chapter2/14_Initialization.html +++ b/chapter2/14_Initialization.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:lifedim
diff --git a/chapter2/15_Deinitialization.html b/chapter2/15_Deinitialization.html index 79d2778e..70a0339d 100644 --- a/chapter2/15_Deinitialization.html +++ b/chapter2/15_Deinitialization.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:bruce0505
diff --git a/chapter2/16_Automatic_Reference_Counting.html b/chapter2/16_Automatic_Reference_Counting.html index 0d7571f8..be4f7fa0 100644 --- a/chapter2/16_Automatic_Reference_Counting.html +++ b/chapter2/16_Automatic_Reference_Counting.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:TimothyYe
diff --git a/chapter2/17_Optional_Chaining.html b/chapter2/17_Optional_Chaining.html index bd33cd6f..984f2103 100644 --- a/chapter2/17_Optional_Chaining.html +++ b/chapter2/17_Optional_Chaining.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:Jasonbroker
diff --git a/chapter2/18_Type_Casting.html b/chapter2/18_Type_Casting.html index 5f5b52a5..a1c451d6 100644 --- a/chapter2/18_Type_Casting.html +++ b/chapter2/18_Type_Casting.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:xiehurricane
diff --git a/chapter2/19_Nested_Types.html b/chapter2/19_Nested_Types.html index 5f1fd0e9..b37366bd 100644 --- a/chapter2/19_Nested_Types.html +++ b/chapter2/19_Nested_Types.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:Lin-H
diff --git a/chapter2/20_Extensions.html b/chapter2/20_Extensions.html index 7d1c4ed1..e3d0fda9 100644 --- a/chapter2/20_Extensions.html +++ b/chapter2/20_Extensions.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:lyuka
diff --git a/chapter2/21_Protocols.html b/chapter2/21_Protocols.html index a25334a3..cba371d6 100644 --- a/chapter2/21_Protocols.html +++ b/chapter2/21_Protocols.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:geek5nan
diff --git a/chapter2/22_Generics.html b/chapter2/22_Generics.html index 32677308..2fb4590d 100644 --- a/chapter2/22_Generics.html +++ b/chapter2/22_Generics.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:takalard
diff --git a/chapter2/23_Advanced_Operators.html b/chapter2/23_Advanced_Operators.html index f652e97b..9e11d2bc 100644 --- a/chapter2/23_Advanced_Operators.html +++ b/chapter2/23_Advanced_Operators.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:xielingwang
diff --git a/chapter2/chapter2.html b/chapter2/chapter2.html index af9c990c..4dc01039 100644 --- a/chapter2/chapter2.html +++ b/chapter2/chapter2.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ Swift 教程
本章介绍了 Swift 的各种特性及其使用方法,是全书的核心部分。
diff --git a/chapter3/01_About_the_Language_Reference.html b/chapter3/01_About_the_Language_Reference.html index 6fb4ab69..30e4b2fb 100644 --- a/chapter3/01_About_the_Language_Reference.html +++ b/chapter3/01_About_the_Language_Reference.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:ChildhoodAndy
diff --git a/chapter3/02_Lexical_Structure.html b/chapter3/02_Lexical_Structure.html index b77d67c8..cb25c822 100644 --- a/chapter3/02_Lexical_Structure.html +++ b/chapter3/02_Lexical_Structure.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:superkam
diff --git a/chapter3/03_Types.html b/chapter3/03_Types.html index d94d3252..b0814ab4 100644 --- a/chapter3/03_Types.html +++ b/chapter3/03_Types.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:lyuka
diff --git a/chapter3/04_Expressions.html b/chapter3/04_Expressions.html index 55b3b9b2..3a89a79c 100644 --- a/chapter3/04_Expressions.html +++ b/chapter3/04_Expressions.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:sg552
diff --git a/chapter3/05_Declarations.html b/chapter3/05_Declarations.html index a2b48e48..6839b203 100644 --- a/chapter3/05_Declarations.html +++ b/chapter3/05_Declarations.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:marsprince
diff --git a/chapter3/06_Attributes.html b/chapter3/06_Attributes.html index 7cfe8bee..ddf1cd09 100644 --- a/chapter3/06_Attributes.html +++ b/chapter3/06_Attributes.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:Hawstein
diff --git a/chapter3/07_Patterns.html b/chapter3/07_Patterns.html index 88b141c0..ac7586e9 100644 --- a/chapter3/07_Patterns.html +++ b/chapter3/07_Patterns.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:honghaoz
diff --git a/chapter3/08_Generic_Parameters_and_Arguments.html b/chapter3/08_Generic_Parameters_and_Arguments.html index 71e167b8..7e428359 100644 --- a/chapter3/08_Generic_Parameters_and_Arguments.html +++ b/chapter3/08_Generic_Parameters_and_Arguments.html @@ -46,7 +46,7 @@ -