求教!!!!
sum = 0 x = 1 while x < 100: sum = sum + x x = x + 2 print sum
和
sum = 0 x = 1 while x < 100: x = x + 2 sum = sum + x print sum
有什么区别???
计算结果:
上面的为2500
下面这个为2600
sum = 0 x = 1 while x < 100: sum = sum + x x = x + 2 print sum
和
sum = 0 x = 1 while x < 100: x = x + 2 sum = sum + x print sum
有什么区别???
计算结果:
上面的为2500
下面这个为2600
2019-10-22
举报