Discuss / Python / 练习

练习

Topic source

i=1 for i in range(100): if i%2==0: i+1 else: print(i)

后面学习了切片,原来还可以用切片: range(100)[1::2]


  • 1

Reply