n = 1 while n < 101: a = n % 2 if a == 1: pass else: print(n) n = n + 1
输出1-100所有的偶数
原文:https://www.cnblogs.com/xiaoxiaoxiuxingzhe/p/12770350.html