Python - Phương thức Tuple
Phương pháp Tuple
Python có hai phương thức tích hợp mà bạn có thể sử dụng trên các bộ giá trị.
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 |