5元组

元组有序

1增

2删

3改

4查

arr=("123","456","789")
print(arr[0]);
结果:123

5其他方法

#count方法
arr=("123","456","123")
count=arr.count("123")
print(count);
结果:2

#index方法
arr=("123","456","123")
count=arr.index("123")
print(count);
结果:0
原文地址:https://www.cnblogs.com/gao-chao/p/13245727.html