Discuss / Python / 交作业

交作业

Topic source

RaidriarF

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

    row=[1]

    yield row

    while True:

     b=[]

     for i in range(len(row)-1):

      b=b+[row[i]+row[i+1]]

     row=[1]+b+[1]

     yield row


  • 1

Reply