最佳答案
有没有一种方法可以解析 URL (使用某个 python 库)并返回一个 python 字典,其中包含 URL 中查询参数部分的键和值?
例如:
url = "http://www.example.org/default.html?ct=32&op=92&item=98"
预期回报:
{'ct':32, 'op':92, 'item':98}