这两个有什么区别?大家看看。
sum = 0
x = 0
while True:
x = x + 1
a=(-1)**x
if x > 100:
break
sum=sum+x
if a>0:
continue
print sum
------------------------------
sum = 0
x = 0
while True:
x = x + 1
a=(-1)**x
if x > 100:
break
if a>0:
continue
sum = sum + x
print sum