#2
lonmaor2018-08-05 18:49
|
大家帮我看看代码为什么出错了
s=0
for i in range(1,997):
if i%2==0:
i=-i
else:
i=i
s+=i
print(s)
运算结果总是不对,是逻辑问题吗