【Python】斐波那契数列

       代码 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))
相关文章
相关标签/搜索