python解析url

from urlparse import urlparse

url=urlparse('http://www.baidu.com/s?wd=python&rsv_spt=1&issp=1&rsv_bp=0&ie=utf-8&tn=baiduhome_pg&rsv_sug3=1&rsv_sug=1&rsv_sug4=527')

print url

 结果如下,是不是很好用呢

你可能感兴趣的:(python解析url)