元组相关

元组之间赋值是值拷贝的。 例:

1
2
3
4
5
 var dic = ("001",1234)
 var (no,value) = dic
 dic.0 = "101"
 print(no)    //输出结果是 : 001
 print(dic.0) //输出结果是 : 101