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