目录

Python - 元组方法


元组方法

Python 有两个可用于元组的内置方法。

Method Description
count() Returns the number of times a specified value occurs in a tuple
index() Searches the tuple for a specified value and returns the position of where it was found