1 info_tuple = ("zhangsan",18,1.75,1.75) 2 3 #1.取值和取索引 4 print(info_tuple[0]) 5 print(info_tuple.index(18)) 6 #2.統計計數 7 print(info_tuple.count(1.75)) 8 #3.統計元組中包含元素的個數 9 print(len(info_tuple))