diff --git a/chapter1/01_swift.html b/chapter1/01_swift.html index 2334ea26..ee24a115 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 e77383a4..b9bef047 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 906845e3..f543057f 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 e71da0ab..18a854f9 100644 --- a/chapter2/01_The_Basics.html +++ b/chapter2/01_The_Basics.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:numbbbbb, lyuka, JaySurplus
@@ -769,15 +769,15 @@ let binaryInteger = 0b10001 // 二进制的17 let octalInteger = 0o21 // 八进制的17 let hexadecimalInteger = 0x11 // 十六进制的17浮点字面量可以是十进制(没有前缀)或者是十六进制(前缀是
-0x)。小数点两边必须有至少一个十进制数字(或者是十六进制的数字)。浮点字面量还有一个可选的指数(exponent),在十进制浮点数中通过大写或者小写的e来指定,在十六进制浮点数中通过大写或者小写的p来指定。如果一个十进制数的指数为
+exp,那这个数相当于基数和$10^{exp}$的乘积:如果一个十进制数的指数为
exp,那这个数相当于基数和10^exp的乘积:-
-- -
1.25e2表示 $1.25 × 10^{2}$,等于125.0。- +
1.25e-2表示 $1.25 × 10^{-2}$,等于0.0125。- +
1.25e2表示 1.25 × 10^2,等于125.0。1.25e-2表示 1.25 × 10^-2,等于0.0125。如果一个十六进制数的指数为
+exp,那这个数相当于基数和$2^{exp}$的乘积:如果一个十六进制数的指数为
exp,那这个数相当于基数和2^exp的乘积:-
- -
0xFp2表示 $15 × 2^{2}$,等于60.0。- +
0xFp-2表示 $15 × 2^{-2}$,等于3.75。- +
0xFp2表示 15 × 2^2,等于60.0。0xFp-2表示 15 × 2^-2,等于3.75。下面的这些浮点字面量都等于十进制的
12.1875:let decimalDouble = 12.1875 diff --git a/chapter2/02_Basic_Operators.html b/chapter2/02_Basic_Operators.html index 4ba22dbf..01d2fe7b 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 7d277189..e50c1bfd 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 8e5b384a..7ba71813 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 dfc89750..21644ab1 100644 --- a/chapter2/05_Control_Flow.html +++ b/chapter2/05_Control_Flow.html @@ -46,7 +46,7 @@ -+@@ -587,7 +587,7 @@-+ 翻译:vclwei, coverxit, NicePiao
diff --git a/chapter2/06_Functions.html b/chapter2/06_Functions.html index 1eb45c63..1db0fd8e 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 3801f1e5..42639fb0 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 a745f8f6..c8d12a26 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 1f2ce5f5..374de71f 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 c804a26d..bf9ca55d 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 19afdf5c..b5b56817 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 582d55e3..662916a1 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 99c85c44..6f24aa5a 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 4eeefdab..2be6d69a 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 fa49e965..3f559adb 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 6b345ccb..d945c091 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 bf302632..88e8352e 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 e0a23fff..ec2163bb 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 5ff30246..c1d9c5b3 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 28628f04..30f54010 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 a4eba122..a0fab645 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 454adce0..75b9cead 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 7d8421bf..817b2418 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 a1eeafea..7558d301 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 2976b72f..93a2fdf6 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 906760bb..a40e2bc8 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 1ff3c409..1c5a313d 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 a43fa552..b6428fb2 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 6c8067cb..513327a5 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 63ee3949..597ea5ef 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 90452336..1f610360 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 4d351842..45b7b8f3 100644 --- a/chapter3/08_Generic_Parameters_and_Arguments.html +++ b/chapter3/08_Generic_Parameters_and_Arguments.html @@ -46,7 +46,7 @@ -