Discuss / Python / 交作业

交作业

Topic source

zhaohanim

#1 Created at ... [Delete] [Delete and Lock User]
    yh = [1]
    while True:
        yield(yh)
        yh = [0] + yh +[0]
        yh = [yh[i] + yh[i+1] for i in range(len(yh)-1)]

  • 1

Reply