0
我很喜欢Python和编程的其他人。希望有人能帮忙。Python:如何将一个值传递给一个函数的变量......?
我有一本字典是这样的:
dictionary = {
'key1' : fun1(),
'key2' : fun2(),
...
}
val = dictionary.get('key2')
我现在想用val
调用fun2()
。如何将参数传递给val
?假设fun2(x, y)
?