python中閉包

  def count(): fs = [] for i in range(1, 4): def f(j): def g(): return j*j return g r = f(i) fs.append(r) return fs f1, f2,
相關文章
相關標籤/搜索