while

Python 基础: while 迴圈
i = 1
while i <= 10:
    print(i, end=" ")
    i = i + 1

# 1 2 3 4 5 6 7 8 9 10