Test opt args.

This commit is contained in:
Captain ALM 2022-11-30 19:04:49 +00:00
parent cf05396f70
commit 75dfd6babb
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

View File

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