num = 0 sum = 0 if num < 1000: num = num + 1 if num %2 == 1: continue sum = sum + num print(sum)
第3行的if 改while