递归方法求1到10的累加

Source
def s(n):
    if n==1:
        return 1
    result=n+s(n-1)
    return result
if __name__ == '__main__':
    result=s(10)
    print(result)