定义:与列表类似,只不过[]改成()
特性:
1.可存放多个值
2.不可变
特性:
1.可存放多个值
2.不可变
3.按照从左到右的顺序定义元组元素,下标从0开始顺序访问,有序
```````````````````````````````````````````````````````````````````````````````````````````````
1.tuple.count(obj):统计某个元素在列表中出现的次数
2.tuple.index(obj):从列表中找出某个值第一个匹配项的索引位置