Home  >  Q&A  >  body text

python - 怎么将flask里面的request.args这个ImmutableMultiDict变成MutiDict类型

我现在要接收到request.args,
并将里面的所有的值变成utf-8,里面目前的值是unicode的
但request.args的类型是 ImmutableMultiDict,不可改变值的

伊谢尔伦伊谢尔伦2741 days ago839

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 15:07:44

    Found the answer at http://werkzeug.pocoo.org/docs/0.10/datastructures/
    ImmutableMultiDict and MultiDict can be converted into dict type through to_dict()

    reply
    0
  • Cancelreply