Discuss / Python / 脑袋快想破了,看到其它同学的思路后,总算成功了!

脑袋快想破了,看到其它同学的思路后,总算成功了!

Topic source

似水年华_

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

def triangles(): L = [1] while True: yield L S1 = [0] + L S2 = L + [0] sum = [] n = len(S1) for n in range(n): sum.append( S1[n] + S2[n]) L = sum


  • 1

Reply