📜  如何在python代码示例中使for循环递增2

📅  最后修改于: 2022-03-11 14:46:55.886000             🧑  作者: Mango

代码示例2
for i in range(0, 11, 2): #range follows (start, stop, step)
  print(i)
# 0 2 4 6 8 10