map->dict

This commit is contained in:
Adam Bard 2015-09-30 10:48:59 +08:00
parent b0036199c4
commit 09874aa5c0

View File

@ -412,7 +412,7 @@ varargs(1, 2, 3) # => (1, 2, 3)
# You can define functions that take a variable number of # 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): def keyword_args(**kwargs):
return kwargs return kwargs