mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-07-31 20:10:49 +02:00
map->dict
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user