Test many keyed args for func def.
This commit is contained in:
parent
c83fb46d2f
commit
cf05396f70
8
main.py
8
main.py
@ -1,7 +1,7 @@
|
|||||||
#Test any number of arg pass (As a tuple)
|
#Test any number of arg pass (As a dict)
|
||||||
def iaccept(*many):
|
def iaccept(**many):
|
||||||
print(many)
|
print(many)
|
||||||
|
|
||||||
iaccept()
|
iaccept()
|
||||||
iaccept("Test")
|
iaccept(a="Test")
|
||||||
iaccept("Test", 1, 2)
|
iaccept(a="Test", b=1, c=2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user