Discuss / Python / 第一次交作业

第一次交作业

Topic source

King_Zevin

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

def triangles(): l=[] while 1: for i in range(0,len(l)-1): l[i] = l[i] + l[i+1] l.insert(0,1) yield l


  • 1

Reply