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) 最大,最小,排序
相关文章
相关标签/搜索