python斐波拉契數列(生成器)

In [1]: def feibonaqie(times): ...: n = 0 ...: a, b = 0, 1 ...: while n < times: ...: # print(b) ...: yield b ...:
相關文章
相關標籤/搜索