diff options
-rwxr-xr-x | python/kwargs1.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/python/kwargs1.py b/python/kwargs1.py new file mode 100755 index 0000000..0917965 --- /dev/null +++ b/python/kwargs1.py @@ -0,0 +1,10 @@ +def a(x, y=None, z=3): + print(x) + print(y) + print(z) + +def b(*args, **kwargs): + return a(*args, **kwargs) + +b(2, y=-1, z=1) + |