打印出1到100 # x = 0 # while x <= 100: # x = x + 1 # print(x) # 输出1+2+3+....+100的运算 # x = 1 # y = 0 # while x <= 100: # y = y + x # x = x + 1 # print(y) # print(3 != 2) # 输出1+3+5+7+9+...99的值 # x = 1 # y = 0 # while x <= 99: # y += x # x += 2 # print(y) # 输出1、2、3、4、、、、、、100中的偶数 # x = 1 # while x <= 100: # x += 1 # if x % 2 == 0: # print(x)