# Enter a code
num =0
sum_num = 0
while True:
if num % 2 == 1:
continue
sum_num += num
num += 1
if num == 1000:
break
print(num,sum_num)
进入死循环了,True进入判断,0取余2得到0不等于1,所以sum_num=0,num=2,又进入判断,1取余2得到1,continue跳过下面,还判断True,还是1取余2得到1,一直循环,就没有结果