我尝试从有关 SplitResult() 的官方文档中搜索定义,但我找不到对我有意义的有用信息。谁能根据下面的代码给我解释一下?
> > > import urlparse
> > > components = urlparse.urlsplit(' http:// example.webscraping.com/ index/')
> > > print components
SplitResult( scheme =' http', netloc =' example.webscraping.com', path ='/` index/', query ='', fragment ='')
> > > print components.path
'/index.html/'