while_else
使用while循环输出100-50,从大到小,到50的时候,再从0到50输出,然后结束
count = 100
num = 50
while count >= num:
print(count)
count -= 1
else:
while num >= 0:
print(50-num)
num -= 1
使用while循环输出100-50,从大到小,到50的时候,再从0到50输出,然后结束
count = 100
num = 50
while count >= num:
print(count)
count -= 1
else:
while num >= 0:
print(50-num)
num -= 1