NUM = 0 a = 0 while a < 100: a = a + 1 if (a % 2) == 0: print(a) else: pass 转载于:https://www.cnblogs.com/JJJay/p/10429366.html