1.在swift语言中,var定义变量,let定义常量,let定义之后不能再被赋值2.类型varstr="hello"有个自动推断,根据hello的内容判断str的类型varstr:String="hello"则手动定义str的类型为String,不用再根据内容推断str的类型3.字符窜连接varstr="hello"vars="world"vara=100str=str+s//第一种字符串连接str="\,jfkdlsajfkdls,\"//第二种通过\()来转换内容4.数组vararray=["hel