python07 while循环 的使用

# 打印 1 到10 数字
num = 1
while num <= 10:
    # print("%d"%num)
    print(num)
    num = num + 1
注意:python 中没有do while 和swith语法

猜你喜欢

转载自blog.csdn.net/qq_35524586/article/details/84927194