📜  在 python 代码示例中从 1 打印到 n

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

代码示例1
#To print a number from 1 to n (n being any number you want + 1, since python wont print the ranged number)
for i in range(1,n):
  print(i)