剑指Offer(Python多种思路实现):求1+2+···+n

剑指Offer(Python多种思路实现):求1+2+···+n 题目:64题python 求1+2+3+...+n,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。code 解题思路一:python方法 def Sum_Solution(self, n): return n and (n+self.Sum_Solutio
相关文章
相关标签/搜索