mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-22 23:01:41 +03:00
map->dict
This commit is contained in:
parent
b0036199c4
commit
09874aa5c0
@ -412,7 +412,7 @@ varargs(1, 2, 3) # => (1, 2, 3)
|
||||
|
||||
|
||||
# You can define functions that take a variable number of
|
||||
# keyword args, as well, which will be interpreted as a map if you do not use **
|
||||
# keyword args, as well, which will be interpreted as a dict if you do not use **
|
||||
def keyword_args(**kwargs):
|
||||
return kwargs
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user