Results of 1 - 1 of about 1 for SplitResult (0.001 sec.)
- urllib.parse --- URL を構成要素に解析する 9414
- urllib.parse --- URL を構成要素に解析する ソースコード: Lib/urllib/parse.py このモジュールでは URL (Uniform Resource Locator) 文字列をその構成要素 (アドレススキーム、ネットワーク上の位置、パスその他) に分解したり、構成要素を URL に組みなおし
...it ( urlstring , scheme = None , allow_fragments = True ) Parse a URL into five components, returning a 5-item named tuple SplitResult or SplitResultBytes . This corresponds to the general structure of a URL: scheme://netloc/path?query#fragment . Each tuple...はデコードされません。 例えば: >>> from urllib.parse import urlsplit >>> urlsplit ( "scheme://netloc/path?query#fragment" ) SplitResult(scheme='scheme', netloc='netloc', path='/path', query='query', fragment='fragment') >>> o = urlsplit ( "http://docs.python....org:80/3/library/urllib.parse.html?" ... "highlight=params#url-parsing" ) >>> o SplitResult(scheme='http', netloc='docs.python.org:80', path='/3/library/urllib.parse.html', query='highlight=params', fragment='url-p... - https://man.mtool.work/python/3.14/library/urllib.parse.html
PREV
1
NEXT