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