【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))
相關文章
相關標籤/搜索