From here and here. The code below tells everything.
1 | def foo(*args, **kwargs): |
Note that:
“*args” is a tuple which presents all the no name arguments;
“**kwargs” is a dict which presents the keyword arguments;
“*args” must show before “**kwargs”.
From here and here. The code below tells everything.
1 | def foo(*args, **kwargs): |
Note that:
“*args” is a tuple which presents all the no name arguments;
“**kwargs” is a dict which presents the keyword arguments;
“*args” must show before “**kwargs”.