Discuss / Python / 作业很难!研究了很久!精妙啊!

作业很难!研究了很久!精妙啊!

Topic source

Alice_Biggee

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

L = [1]

      while True:

          yield L

          L = [1] + [L[n]+L[n+1] for n in range(len(L)-1)] + [1]


  • 1

Reply