Python 1.列表(list) list1 = [i for i in range(10)] list1[0, 1, 2, 3, 4, 5, 6, 7, 8, 9] 特点:可遍历,可索引,可切片 列表的遍历: 方式1: for i in range(len(list1)): print(list1[i]) 0123456789 方式2: list1 = [i+1 for i in range(10)] for i,j in enumerate(list1): print(i,j) 0 1 1…