資料結構 -- List
頭前 轉厝 後壁
listName = list()
listName = []
listName = []





slicing(切片)


in 與not in


二維list


常用函數
- append(x)、extend(iterable)與insert(i,x)三個都是加入新資料進入list的方法
- remove(x)、pop()、del(list[n])與clear()這四種方法都有刪除的意思
- index(x)、count(x): index(x)會傳回list中x資料的位置,count(x)會算出在list中x的個數
- sort()、reverse()與copy()
- 與for合用
- 使用for來產生資料
- 字串(str)