python list插入刪除,dict插入刪除

列表 插入: append    在最後加入 insert(,)   在第幾個位置插入xxx list1.extend(list2)    將list1和list2連起來      刪除 pop()   刪除最後一個元素 remove()   指定要刪除的 元素 del xxx[下標]   按照下標刪除     字典 插入: dict[key]=value   刪除: del dict[key]
相關文章
相關標籤/搜索