def triangles():
L = [1]
while True:
yield L[:]
L.insert(0, 0)
for a in range(0, len(L) - 1):
L[a] = L[a] + L[a + 1]
厉害👍🏻
Sign in to make a reply
ksahgfiwhi
def triangles():
L = [1]
while True:
yield L[:]
L.insert(0, 0)
for a in range(0, len(L) - 1):
L[a] = L[a] + L[a + 1]