杨辉三角
2019-04-17 本文已影响0人
mocobk
def yh_triangle():
N = [1]
while True:
yield N
N.append(0)
N = [N[i-1] + N[i] for i in range(len(N))]
def yh_triangle():
N = [1]
while True:
yield N
N.append(0)
N = [N[i-1] + N[i] for i in range(len(N))]