python---tuple元组的操作方法 2021-01-20 本文已影响0人 幼姿沫 tuple元组的相关操作方法 tu=(1,2,3,6.3,5.9,89.65,25,25,2,3,6) print(tu.count(2),tu.index(25))