标签:斐波那契 for style col bsp 数列 count rev 斐波那契数列
static IEnumerable<int> Fibs(int count) { for (int i = 0,prevFib=1,curFib=1; i < count; i++) { yield return prevFib; int newFib = prevFib + curFib; prevFib = curFib; curFib = newFib; } }
标签:斐波那契 for style col bsp 数列 count rev 斐波那契数列
原文地址:https://www.cnblogs.com/aqgy12138/p/12642189.html