标签:col while 输入 color pre lse else 使用 bsp
1 #1.使用while循环输入1 2 3 4 5 6 ... 8 9 10 2 count = 0 3 while count < 10: 4 count += 1 # count = count + 1 5 if count == 7: 6 print(" ") 7 else: 8 print(count)
#2.使用while循环输入1 2 3 4 5 6 8 9 10 """ count = 0 while count < 10: count += 1 # count = count + 1 if count == 7: print(" ") else: print(count) """ count = 0 while count < 10: count += 1 # count = count + 1 if count == 7: continue print(count)
1.使用while循环输入1 2 3 4 5 6 ... 8 9 10
标签:col while 输入 color pre lse else 使用 bsp
原文地址:https://www.cnblogs.com/chaxiaoming/p/12327595.html