临时有点想法,想问下 python
print [x*y for x in range(1,100,2) for y in range(2,101,2)]
如果要用这种方法打印出[1X2,3X4,5X6,7X8,.....,99X100]
怎么限制实现?
print [x*y for x in range(1,100,2) for y in range(2,101,2)]
如果要用这种方法打印出[1X2,3X4,5X6,7X8,.....,99X100]
怎么限制实现?
2016-02-27
举报