This commit is contained in:
2022-03-16 19:37:32 +08:00
parent 3f91ca3bdd
commit 27cafcd10c
9 changed files with 111 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
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))