Discuss / Python / 交作业了

交作业了

Topic source

晶雷

#1 Created at ... [Delete] [Delete and Lock User]

``` 在此插入代码

```def triangles(): n,l=0,[[1]] while 1: yield l l.append([sum(i) for i in zip([0]+l[n],l[n]+[0])]) n=n+1 return l


  • 1

Reply