mod和%区别?
sum = 0
x = 0
while True:
x = x + 1
if x > 100:
break
if(x % 2== 0):
continue
else:
sum += x
print sum
为什么把%改成mod就是错的?
sum = 0
x = 0
while True:
x = x + 1
if x > 100:
break
if(x % 2== 0):
continue
else:
sum += x
print sum
为什么把%改成mod就是错的?
2016-01-21
举报