Discuss / Python / 交作业后去膜拜楼下大神

交作业后去膜拜楼下大神

Topic source
   T=[]
   while True:
       i=len(T)
       while i >1:
           T[i-1]=T[i-1]+T[i-2]
           i=i-1
       T.append(1)
       yield T

  • 1

Reply