08 Python Data Container -- Tuple
Yung-Chen Chou
Python 的原生資料容器有 Tuple (元組)、List (清單)、Set (集合)及 Dict (字典)等四種。如果在 Python 裡要用到陣列要靠外來的套件幫忙,例如 Numpy 裡的 array 。
本影片主要介紹重點如下:
- 介紹 Python 的 Tuple 資料容器
- Tuple 的使用與限制
- 使用 tuple 與 list 之間的轉換來達到 tuple 裡的元素 (item) 維護
- tuple 提供的原生函數 index() 與 count()
- tuple 的串接與複製 ... https://www.youtube.com/watch?v=BFNEGuSCWRY
2022-08-27
0.0 LBC
Copyrighted (contact publisher)
74833659 Bytes