有如下Python程序段,执行该程序后,输出的结果是?( )
def qh(n):
s , f = 0,1
for i in range(1,n+1):
s += f * i
f = -f
return s
print(qh(4))
10
2
-2
-10