为什么提交了没有结果
# 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)
# 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)
2020-11-27
举报