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