结果为5050
sum=0
>>> x=0
>>> while True:
... sum=sum+x
... x=x+1
... if x%2==0:
... continue
... if x>100:
... break
...
>>> print sum
5050
为何结果为5050,看不懂
sum=0
>>> x=0
>>> while True:
... sum=sum+x
... x=x+1
... if x%2==0:
... continue
... if x>100:
... break
...
>>> print sum
5050
为何结果为5050,看不懂
2017-08-17
举报