作业
Topic sourcedef triangles():
L = []
while True:
L.append(1)
temp = L[:]
for i,value in enumerate(temp):
if i!=0 and i!=len(temp)-1:
L[i] = temp[i-1]+ temp[i]
yield L
提交评论前把if置于上一行了。发现不行。 等我再试简化
- 1
了此本心