Discuss / Python / 这也可以吧

这也可以吧

Topic source

NicoUliter

#1 Created at ... [Delete] [Delete and Lock User]
s = [1]while True:    yield s[:]    s.append(0)    l = s[:]    for i in range(len(s)):        l[i] = s[i] + s[i-1]    s = l[:]

  • 1

Reply