标签:sequence

  • Python:按顺序执行步骤 - python

    时间:2020-7-14

    我试图制作一个完全可切片的斐波那契数列,但我一直陷于切片的阶跃特征。这是我到目前为止的代码: class Fib: def __init__(self, start, end): self.start = start self.end = end def _fib(self, index): items = [0,1] n = 2 while n <= […]