Discuss / Python / 有点绕脑子

有点绕脑子

Topic source

Zlstg

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

  • 1

Reply