为什么第五行会出现错误
# Enter a code
num=0
sum=0
while num<1000:
if num%2=1:
num=num+1
continue
sum=sum+num
num=num+1
print(sum)
# Enter a code
num=0
sum=0
while num<1000:
if num%2=1:
num=num+1
continue
sum=sum+num
num=num+1
print(sum)
2020-09-18
举报