元组 #count()计数 tup = (1,2,3,"asd",33,2,3,3,"asd") print(tup.count(3)) print(tup.count(2)) print(tup.count("asd")) 3 2 2 #index(),位置 print(tup.index(2)) print(tup.index(33)) 1 4