r=[1]
while True:
l=r[:]
yield r[:]
for i in range(0,len(l)-1):
r[i+1]=l[i]+l[i+1]
r.append(1)
Sign in to make a reply
微笑的叶蓝秋
r=[1]
while True:
l=r[:]
yield r[:]
for i in range(0,len(l)-1):
r[i+1]=l[i]+l[i+1]
r.append(1)