Python元组
-
从零开始学Python(五):列表,元组,字典,函数
01-删除列表所有元素a = [1, 2, 3, 4, 5, 6, 8]for i in a: a.remove(i)print(a)02-列表嵌套a = [[1, 2, 3], [4, 5, 6, [1, 2, 3]]]print(a[1][3])03-元组a = (1, 2, 3,
Python列表Python元组Python字典Python函数
01-删除列表所有元素a = [1, 2, 3, 4, 5, 6, 8]for i in a: a.remove(i)print(a)02-列表嵌套a = [[1, 2, 3], [4, 5, 6, [1, 2, 3]]]print(a[1][3])03-元组a = (1, 2, 3,
Python列表Python元组Python字典Python函数