Discuss / Python / 解决杨辉三角问题的非常巧妙的python语句

解决杨辉三角问题的非常巧妙的python语句

Topic source

    L = [1]

    while True:

        yield L

        L = [sum(i) for i in zip([0]+L, L+[0])]

在下是个S

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

啊,你是神仙吗


  • 1

Reply