标签:tuples 元组 div nbsp color let log name 元素
//元组 //不需要的元素用 _ 标记 let (name,age,_) = ("明明","10","男") print(name,age) //通过下标访问特定的元素 let student = ("明明","10","男") print(student.0,student.1,student.2) let bobo = (name:"波波",age:"24") print(bobo.name,bobo.age)
标签:tuples 元组 div nbsp color let log name 元素
原文地址:http://www.cnblogs.com/xingsmile/p/6163887.html