python中list,dict,set的總結

list 基本特性 有序可變,元素能夠是任何已知的數據結構python 初始化 a = [] a = [1,3,54] a = [1, '34', (2,4)] 增刪改查 a.append() a.extend() a.pop() a.pop(index) a[0] = 'need' a.clear() x in a 遍歷 for x in list: print(i) 最大,最小,排序
相關文章
相關標籤/搜索