print(i) 1. 2. 3,打印100以内所有偶数的和 老师的方法: print(sum(range(0,101,2))) 方式一: num = 1 sum = 0 while num <= 100: if num % 2 == 0: sum += num num += 1 print(sum) 方式二: sum = 0 for i in range(0, 101, 2): sum += i print(sum) 1. 2. 3. 4....