摘要: test_fib.py import pytest def fib(): """1-n的fib数列生成器""" a, b = 0, 1 while True: yield a a, b = b, a + b class Fib: """Fib类""" def __init__(self): self 阅读全文
posted @ 2021-08-28 19:27 花兒向陽開 阅读(46) 评论(0) 推荐(0) 编辑