生成一个1-14的列表 1.1 普通for循环 # lst = [] # for i in range(1,15): # lst.append(i) # print(lst) # # 结果: # [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] 1.2 list 推导式 lst = [i for i in range(1,15)] print(lst) # 结果: # [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1…