Python中的for循环 - qiy校招算法选择题
list = [] for i in range(3): def test(x): print(x+i) list.append(test) for num in list: num(2)
输出结果:
444