gpt4 book ai didi

python - 我应该使用哪个 : urlparse or urlsplit?

转载 作者:IT老高 更新时间:2023-10-28 22:19:16 26 4
gpt4 key购买 nike

其中URL parsing function pair我应该使用,为什么?

最佳答案

直接来自 the docs you linked yourself :

urllib.parse.urlsplit(urlstring, scheme='', allow_fragments=True)
This is similar to urlparse(), but does not split the params from the URL. This should generally be used instead of urlparse() if the more recent URL syntax allowing parameters to be applied to each segment of the path portion of the URL (see RFC 2396) is wanted.

关于python - 我应该使用哪个 : urlparse or urlsplit?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5472160/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com