파이썬 - 튜플 메서드
튜플 메서드
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 |