Test opt args.
This commit is contained in:
parent
cf05396f70
commit
75dfd6babb
6
main.py
6
main.py
@ -1,7 +1,7 @@
|
|||||||
#Test any number of arg pass (As a dict)
|
#Test any number of arg pass (As a dict)
|
||||||
def iaccept(**many):
|
def iaccept(test = "Oh",**many):
|
||||||
print(many)
|
print(test,many)
|
||||||
|
|
||||||
iaccept()
|
iaccept()
|
||||||
iaccept(a="Test")
|
iaccept("Hey",a="Test")
|
||||||
iaccept(a="Test", b=1, c=2)
|
iaccept(a="Test", b=1, c=2)
|
||||||
|
Loading…
Reference in New Issue
Block a user