Python编写1+2+3+······+n的值代码如下:递归求和
n=int(input())
jie=1
sum=0
i=1
whilen>=i:
jie=jie*i
sum=sum+jie
i=i+1
print(sum)