任务遇阻,求解答
请问各位我的代码错哪里了?输出结果为0 sum = 0 x = 0 while True: x = x + 1 if x > 100: break if x % 2 == 0: continue sum += x print sum
请问各位我的代码错哪里了?输出结果为0 sum = 0 x = 0 while True: x = x + 1 if x > 100: break if x % 2 == 0: continue sum += x print sum
2017-03-24
举报