mum=0
sum=0
for num in range(0,101)
while ture:
if num%2==0:
break
else:
sum=sum+num
num=num+1
print(sum)
break是跳出循环,会跳出while的循环,当num取到偶数时,你直接就跳出while循环了,就无法再取到之后的数了