Phương thức Tuple của Python
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 |
Tìm hiểu thêm về bộ dữ liệu trong Hướng dẫn về bộ dữ liệu Python của chúng tôi.