-
遍歷字符串查看全部
-
空字符串查看全部
-
字符串可變性查看全部
-
如果某個可選型一定會有值,可以聲明為var a:Int!查看全部
-
Optional Binding 解包可以自動讓可選型轉成特定類型查看全部
-
當可選型確定有數據時,可以通過加!進行強制轉換查看全部
-
let input = "abc" var age = input.toInt() if age { println("age is \(age)") } else { println("invalid input"); }查看全部
-
Optional: nil or value dec var valOptional:Int?查看全部
-
mark查看全部
-
y?y?h?g查看全部
-
大神什么時候出下一章查看全部
-
1.if 后語句不用接括號,如果接則括號表示優先順序 2.if 語句只能接bool 型和表達式查看全部
-
1.Int 型可用各種進制表達 2.Float 型 e-2 代表十的負二次方 3.bignum 大數字表示法 中間用_間隔 4.Float 型可以輸入Int 型,自動轉換為Float 型 Int 型 輸入Float 型,要轉換為Int 型,需強制轉換:Int(1.2) 5.中文 作為變量名查看全部
-
基本類型: Int 整形 Double(15) Float(6) 浮點型 String 字符串型 1、字符串只能用" "表示 2、首字母必須大寫查看全部
-
xcode6 beta 官方下載: http://adcdownload.apple.com//wwdc_2014/xcode_6_beta_ie8g3n/xcode_6_beta.dmg xcode6n beta 網盤下載: http://pan.baidu.com/s/1gdzgEgb Password:90gz查看全部
舉報
0/150
提交
取消