[Algorithm] Good Fibonacci
生活随笔
收集整理的這篇文章主要介紹了
[Algorithm] Good Fibonacci
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
def good_fibonacci(n):if n<=1:return (n,0)else:(a,b)=good_fibonacci(n-1)return (a+b,a)
轉載于:https://www.cnblogs.com/chiyeung/p/9649877.html
總結
以上是生活随笔為你收集整理的[Algorithm] Good Fibonacci的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python中的__iter__ __r
- 下一篇: Solr安装(单机版)