I asked a question in the past, but still run into a problem. address_dict = {'address': {'US': 'San Francisco', 'US': 'New York', 'UK': 'London'}}
When the above parameters were sent via requests, how can I get the values in the address key using request.form on Flask?
import requests url = 'http://example.com' params = {"address": {"US": "San Francisco", "UK": "London", "CH": "Shanghai"}} requests.post(url, data=params)
Then I got this in the context of flask.request.
ImmutableMultiDict([('address', u'US'), ('address', 'US'), ('address', 'UK')])
How can I get the value in each address key?
Thanks.
source share