num = 0
sum = 0
while num<=1000:
if num%2==1:
num =num+1
continue
sum +=num
print(sum)
懂了懂了 num = num+1要在if前,不然一直循环了