元组有序
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
元组有序
arr=("123","456","789") print(arr[0]); 结果:123
#count方法 arr=("123","456","123") count=arr.count("123") print(count); 结果:2 #index方法 arr=("123","456","123") count=arr.index("123") print(count); 结果:0