The URL library contains functions for handling URLs.URL库(Library)包含了处理URL的函数。
Returns the fragment in a URL返回URL的一部分
getHost()Returns the host specified in a URL返回指向一个URL的主机getParameters()Returns the parameters in the last path segment of a URL返回在URL最后一部分路经的参数getPath()Returns the path specified in a URL返回在URL中的一个已指定的路径getPort()Returns the port number specified in a URL返回一个URL指定的端口号getQuery()Returns the query part in a URL返回一个URL的问号(query)部分(变量部分)getReferer() getScheme()Returns the scheme in a URL返回一个URL的使用的网络协议isValid()Returns true if a URL has the right syntax, and false if not如果一个URL的语法正确,返回True;如果不正确,则返回FalseloadString()Returns the content and the content type of a specified URL返回指定的URL的内容和内容类型resolve()Returns an absolute URL from a base URL and a relative URL从一个最基本的URL中返回一个绝对的URL(an absolute URL)和一个相对的URL(a relative URL)unescapeString()Replaces the escape sequences in a URL with characters用字符替代URL中的转义符