def triangles(): lst = list()
#print(type(lst)) while True: lst.append(1) index = len(lst)-2; while index>0: lst[index] = lst[index] +lst[index-1] index -= 1 yield lst
Sign in to make a reply
大力拜
def triangles(): lst = list()