- 用to_dict()方法
ImmutableMultiDict(data).to_dict()
<br />
- werkzeug.ImmutableMultiDict 的方法
init([mapping]) | ||
add(key, value) | ||
clear() | ||
copy() | Return a shallow mutable copy of this object. | |
deepcopy([memo]) | Return a deep copy of this object. | |
fromkeys(keys[, value]) | ||
get(key[, default, type]) | Return the default value if the requested data doesn’t exist. | |
getlist(key[, type]) | Return the list of items for a given key. | |
has_key((k) | -> True if D has a key k, else False) | |
items(*a, **kw) | Like iteritems() | , but returns a list. |
iteritems([multi]) | Return an iterator of (key, value) pairs. | |
iterkeys() | ||
iterlists() | Return a list of (key, values) pairs, where values is the list of all values associated with the key. | |
iterlistvalues() | Return an iterator of all values associated with a key. | |
itervalues() | Returns an iterator of the first value on every key’s value list. | |
keys(*a, **kw) | Like iterkeys(), but returns a list. | |
lists(*a, **kw) | Like iterlists(), but returns a list. | |
listvalues(*a, **kw) | Like iterlistvalues(), but returns a list. | |
pop(key[, default]) | ||
popitem() | ||
popitemlist() | ||
poplist(key) | ||
setdefault(key[, default]) | ||
setlist(key, new_list) | ||
setlistdefault(key[, default_list]) | ||
to_dict([flat]) | Return the contents as regular dict. | |
update(*args, **kwargs) | ||
values(*a, **kw) | Like itervalues(), but returns a list. | |
viewitems(...) | ||
viewkeys(...) | ||
viewvalues(...) |