Test many keyed args for func def.

This commit is contained in:
Captain ALM 2022-11-30 19:03:29 +00:00
parent c83fb46d2f
commit cf05396f70
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#Test any number of arg pass (As a tuple)
def iaccept(*many):
#Test any number of arg pass (As a dict)
def iaccept(**many):
print(many)
iaccept()
iaccept("Test")
iaccept("Test", 1, 2)
iaccept(a="Test")
iaccept(a="Test", b=1, c=2)