📅  最后修改于: 2022-03-11 14:45:19.927000             🧑  作者: Mango
from querystring_parser import parser as qsparser
from pprint import pprint
query_dict = qsparser.parse("one=1&two=2&four=4")
pprint(query_dict)
# >>> query_dict = {'four': '4', 'one': '1', 'two': '2'}
# To build Http query from dict:
from querystring_parser import builder as qsbuilder
qsbuilder.build(query_dict)
# >>> 'one=1&two=2&four=4'