1 # -*- coding:utf-8 -*- 2 class Solution: 3 def Sum_Solution(self, n): 4 # write code here 5 return 1 if n==1 else n+self.Sum_Solution(n-1)
2019-12-27 17:01:06