导航 lambda --> 列表listlambda --> 字典dict lambda --> 列表list list1 = [i for i in range(10)] # [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] lambda --> 字典dict dict1 = {i:i for i in range(5)} # {0: 0, 1: 1, 2: 2, 3: 3, 4: 4} 搞定! 经亲身经历,此方法在调用numpy 和 pandas 时,用来【切片】极为适用!!!