1 # 结合一下列表生成, 准备设计乘法表 2 # numlist = [1,2,3,4,5] 3 # [pow(i,3) for i in numlist] 4 # ## [1, 8, 27, 64, 125] 5 # [[pow(i,2), pow(i,3), pow(i,4) ] for i in numlist] 6 # ## [[1, 1, 1], [4, 8, 16], [9, 27, 81], [16, 64, 256], [25, 125, 625]] 7 ''' 8 乘法口诀表