原创 swift學習筆記7 枚舉

枚舉 枚舉語法 You introduce enumerations with the enum keyword and place their entire definition within a pair of braces: 枚

原创 swift學習筆記5 函數

注:英文部分來自官方文檔 Every function in Swift has a type, consisting of the function’s parameter types and return type. You can

原创 swift學習筆記3 集合類型

注:英文部分來自官方文檔 It is good practice to create immutable collections in all cases where the collection does not need to ch

原创 swift學習筆記6 閉包

閉包 Closures are self-contained blocks of functionality that can be passed around and used in your code. Closures in Sw

原创 swift學習筆記8 類與結構

類與結構 Unlike other programming languages, Swift does not require you to create separate interface and implementation fi

原创 swift學習筆記2 字符串

注:英文部分來自官方文檔 字符串 字符串可變性 You indicate whether a particular String can be modified (or mutated) by assigning it to a v

原创 swift學習筆記1 操作符

注:英文部分來自官方文檔 基礎操作符 賦值操作符 If the right side of the assignment is a tuple with multiple values, its elements can be deco

原创 swift學習筆記4 控制流

注:英文部分來自官方文檔 switch fallthrough In contrast with switch statements in C and Objective-C, switch statements in Swift

原创 乾貨!程序員需掌握的100個英語詞彙

Women are meant to be loved, not to be understood. - Oscar Wilde WWDC 2017來了,蘋果又要發佈新技術了,可能還有不少人因爲英語的問題無法第一時間瞭解到第一