Discuss / Python / 练习部分

练习部分

Topic source

BLOODY-SINNER

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

def triangles(): list = [] while True: n = len(list) if n >= 2: m = 0 ranges = n - 1 while m < ranges: list[m] += list[m+1] m += 1 list.insert(0, 1) yield list


  • 1

Reply