Help on function urlparse in module urlparse:
urlparse(url, scheme='', allow_fragments=True)
Parse a URL into 6 components:
<scheme>://<netloc>/<path>;<params>?<query>#<fragment>
Return a 6-tuple: (scheme, netloc, path, params, query, fragment).
Note that we don't break the components up in smaller bits
(e.g. netloc is a single string) and we don't expand % escapes.
很有趣,这是我第一次遇到他们,发现这个
http://doriantaylor.com/policy/http-url-path-parameter-syntax我也发现了这个 http://tools.ietf.org/html/rfc3986#section-3.3(查询前的最后一段)和 http://www.jtmelton.com/2011/02/02/beware-the-http-path-parameter/
它们很少被使用,我认为它们的目的是将某些属性附加到路径上。。甚至可以控制你想使用哪一个版本的段,但这只是一个预感。。。 不管怎样,谢谢你提出来。
哇。。。我不知道,参见示例:
和帮助(urlparse.urlparse):
相关问题 更多 >
编程相关推荐