import UIKit enumPerson { casezhangsan caselisi casewangwu } enumP...
var str = "Hello, playground" //1.定义方式 vararray1: [String] = [String]()/...
import UIKit var str = "Hello, playground" //item每次遍历的那个索引对应的值,自动赋值 //it...
vara =10 if(a==10) { print("Hello World") } if(a>10) { } else { prin...
funcsquare(number:Int) ->Int { returnnumber * number } square(number:1...
//{@"id":@"123456",@"name":@"zhangsan"}[] //定义与初始化 var dic1:[String : St...
//c //int sum(int a, int b) //oc //-(int) sum:(int)a:(int)b //Swift //fu...
vara:UInt=10 letmaxValue =Int32.max letminValue =UInt8.min varb:Int=-10 ...
#import "ViewController.h" @interface ViewController () @property(nonato...