把x = x + 1放在beak 后面为什么结果就不对呢?
sum = 0 x = 0 while 'abc': if x > 100: break x = x + 1 if x % 2 ==0: continue sum = sum + x print sum 但算出来的结果为什么是2601呢?
sum = 0 x = 0 while 'abc': if x > 100: break x = x + 1 if x % 2 ==0: continue sum = sum + x print sum 但算出来的结果为什么是2601呢?
2017-01-22
举报