请教一下这段代码哪里有问题,Spyder里面执行不出来
Total3times = 0Total5times = 0
a = range(1,101)
i = 1
for i in a:
if i%3 == 0 :
Total3times += i
i += 1
print(i,Total3times,Total5times)
break
elif i%5 == 0 :
Total5times += i
i += 1
print(i,Total3times,Total5times)
break
else :
i += 1
break