摘要:
1 def fabm(n): 2 if n < 1: 3 print('输入不能小于1') 4 return -1 5 6 if n == 1 or n == 2: 7 return 1 8 else: 9 return fabm(n-1) + fabm(n-2) 10 11 result = fa 阅读全文
摘要:
import sys sys.setrecursionlimit(1500) # set the maximum depth as 1500 def recursion(n): if(n <= 0): return print n recursion(n - 1) if __name__ == "_ 阅读全文