ответ

4

Да, с keyword argument unpacking:

def func(one=None, two=None, three=None, four=None): 
    return (one, two, three, four) 

params = ("one", "two", "three", "four") 
for var in params: 
    tmp = func(**{var: "!!"}) 
    print(tmp) 

Выход:

('!!', None, None, None) 
(None, '!!', None, None) 
(None, None, '!!', None) 
(None, None, None, '!!') 
+0

Это гений! спасибо – Jeremy