from functools import partial
>>> def f(a, b, c):
… print a, b, c
…
>>> bound_f = partial(f, 1)
>>> bound_f(2, 3)
1 2 3
欢迎分享,转载请注明来源:内存溢出
from functools import partial
>>> def f(a, b, c):
… print a, b, c
…
>>> bound_f = partial(f, 1)
>>> bound_f(2, 3)
1 2 3
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)