web模块

urlparse.urlparse(urlstr) 将urlsr解析成一个6元组(pro_sch, net_loc, path,params,query,frag)

urlparse.urlunparse(urltup)

urljoin(baseurl,newurl)

 

urllib.urlopen(urlstr, postQueryData=None)

urllib.urlretrieve(urlstr, localfile=None)

 

urllib.quote(urldata, safe='/!@#$%') 

urllib.urlencode() 

posted @ 2022-02-16 12:01  xiaogao2700c  阅读(42)  评论(0编辑  收藏  举报