📜  如何在python代码示例中打印0到10

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

代码示例2
#if Want to print 0 to 9
for i in range(0,10):
    print(i)
    i += 1
#if want to print 1 to 10
for i in range(0,10):
    i += 1
    print(i)