# 使用while输出1~100内的所有奇数number = 1while number <= 100: if number % 2 == 1: print("%s" %number) else: pass number += 1