& gt& gt& gt& gt& gt& gtURL = " http://www . example . org/default . html?ct = 32 & ampop = 92 & ampitem=98 " >& gt& gtquery = urlsplit(url)。查詢& gt& gt& gtparams = parse_qs(query)>& gt& gt參數
{'item': ['98'],' op': ['92'],' CT ':[' 32 ']} & gt;& gt& gt字典(參數)
{'item': ['98'],' op': ['92'],' CT ':[' 32 ']} & gt;& gt& gt{k: v[0] for k,v in params.items()}
{'item': '98 ',' op': '92 ',' ct': '32'}