result=0
for i in range(101):
if i%2==0:
result = result + i
print(result)
或者
result=0
for i in range(2,101,2):
result = result + i
print(result)
result=0
for i in range(101):
if i%2==0:
result = result + i
print(result)
或者
result=0
for i in range(2,101,2):
result = result + i
print(result)