package mainimport "fmt"func fbn(n int) ([]uint64){ fbnslice := make([]uint64,n) fbnslice[0] = 1 fbnslice[1] = 1 for i :=2 ; i
[1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765]
本文共 290 字,大约阅读时间需要 1 分钟。
package mainimport "fmt"func fbn(n int) ([]uint64){ fbnslice := make([]uint64,n) fbnslice[0] = 1 fbnslice[1] = 1 for i :=2 ; i
[1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765]
转载于:https://www.cnblogs.com/sunlong88/p/11135264.html