📌  相关文章
📜  在 python 代码示例中打印从 1 到 100 的数字

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

代码示例1
# range(a,b,s) allows you to iterate from a to the closest number 
# before b (excluded) with step s (default s=1)
# a,b,s are integers

for i in range(1, 101):
  print(1, end = ' ') # prints 1 2 3 ... 99 100