变量和常量 变量 基本写法 //定义一个名称为"variableName",类型为"type"的变量 var variableName type //定义三个类型都是"type"的变量 var vname1, vname2, vname3 type 初始化 //初始化"variableName"的变量为"value"值,类型是"type" var variableName type =…
1. Mutability Objective-C offers several classes in both “regular” and mutable versions, such as NSString/NSMutableString, NSArray/NSMutableArray, and so on. In Swift, mutability is determined when you create an instance, not by choice of class. An i…