I have a QueryDict
that I get from request.POST
in this format:
<QueryDict: {'name': ['John'], 'urls': ['google.com/
bing.com/
askjeeves.com/'], 'user_email': ['[email protected]']}>
Why are the values all in lists?
I did dict(request.POST)
I got
{'name': ['John'], 'urls': ['google.com/
bing.com/
askjeeves.com/'], 'user_email': ['[email protected]']}
How can I get?:
{'name': 'John', 'urls': 'google.com/
bing.com/
askjeeves.com/'`, 'user_email': '[email protected]'}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…