import UIKit enumPerson { casezhangsan caselisi casewangwu } enumPerson2 { case...
import UIKit enumPerson { casezhangsan caselisi casewangwu } enumPerson2 { case...
var str = "Hello, playground" //1.定义方式 vararray1: [String] = [String]()//Array vararray...
import UIKit var str = "Hello, playground" //item每次遍历的那个索引对应的值,自动赋值 //items遍历的那个集合 fori...
vara =10 if(a==10) { print("Hello World") } if(a>10) { } else { print("else") } va...
funcsquare(number:Int) ->Int { returnnumber * number } square(number:10) letsquareClo...
//{@"id":@"123456",@"name":@"zhangsan"}[] //定义与初始化 var dic1:[String : String] = ["id":"...
//c //int sum(int a, int b) //oc //-(int) sum:(int)a:(int)b //Swift //func 函数名(参数列表)->返...
vara:UInt=10 letmaxValue =Int32.max letminValue =UInt8.min varb:Int=-10 var c:Double = ...
#import "ViewController.h" @interface ViewController () @property(nonatomic,strong)UIPi...