Python 元组方法

Python 有两个可以在元组上使用的内建方法。

参阅:Python 元组教程

Python 元组方法

方法 描述
count() 返回元组中指定值出现的次数。
index() 在元组中搜索指定的值并返回它被找到的位置。