1.一维列表 1.1 递增列表 # 初始化递增的list,与L = [i for i in range(10)] 效果相同 L = range(10) # 版本变化L = i for i in range(10)# print(L) # [0,1,2,3,4,5,6,7,8,9] 1.0 常数0列表 #初始化每项为0的一维列表# method 1 L = [[0] * 5] # method 2L = [[0] for i in range(5)] # print(L) #[0,0,0,0,0]