วิธี Python Tuple
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 |
เรียนรู้เพิ่มเติมเกี่ยวกับสิ่งอันดับในการสอน Python Tuplesของ เรา