0
我想在的python2.5的Python 2.5和列表函数参数
有所建树所以,我有我的功能
def f(a,b,c,d,e):
pass
,现在我想调用该函数:(以python2.7我会做)
my_tuple = (1,2,3)
f(0, *my_tuple, e=4)
但是在python2.5中没有办法做到这一点。我在考虑申请()
apply(f, something magical here)
#this doesn't work - multiple value for 'a'. But it's the only thing I came up with
apply(f, my_tuple, {"a":0, "e":4})
你会怎么做?我希望将它内联,而不要将事情放在列表中。