📜  python 查询字符串解析 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:36.690000             🧑  作者: Mango

代码示例1
from urllib.parse import urlparse, parse_qs
URL='https://someurl.com/with/query_string?i=main&mode=front&sid=12ab&enc=+Hello'
parsed_url = urlparse(URL)
parse_qs(parsed_url.query)