num = 0 while num < 10: num += 1 if num == 7: continue else: print(num)
无空格无7改良版
num = 0 while num < 10: num += 1 if num == 7: print(" ") else: print(num)
使用while循环输入123456 8910