摘要:
代码 def f(n): if n==1 or n==2: return 1 else: return f(n-1)+f(n-2) print(f(1)) print(f(2)) print(f(3)) 阅读全文
摘要:
代码: def rvs(s): if s=="": return s else: return rvs(s[1:])+s[0] print(rvs("123")) 阅读全文
摘要:
阅读全文