请问第一个运行结果为什么不对?
sum = 0 x = 0 while True: x = x + 1 if x%2==0: continue sum+=x if x > 100: break print sum sum = 0 x = 0 while True: x = x + 1 if x%2==0: continue if x > 100: break sum+=x print sum
sum = 0 x = 0 while True: x = x + 1 if x%2==0: continue sum+=x if x > 100: break print sum sum = 0 x = 0 while True: x = x + 1 if x%2==0: continue if x > 100: break sum+=x print sum
2019-07-01
举报