7 lines
128 B
Python
7 lines
128 B
Python
import functools
|
|
|
|
def func(x, y, z):
|
|
return x-y+z
|
|
|
|
partial_func = functools.partial(func, x=5, z=0)
|
|
print(partial_func(y=2)) |