摘要: import time def fibonacci_sequence(num: int): # 按照待查找数列的大小,动态生成斐波那契数列 a, b = 0, 1 while a <= num - 1: yield a a, b = b, a + b yield a return def fibon 阅读全文
posted @ 2022-01-21 11:33 rianley 阅读(58) 评论(0) 推荐(0) 编辑