Python模块学习---Web

import urlparse
url = urlparse.urlparse("http://www.python.org/doc/FAQ.html")
print url
print urlparse.urlunparse(url)

运行结果:

ParseResult(scheme='http', netloc='www.python.org', path='/doc/FAQ.html', params='', query='', fragment='')
http://www.python.org/doc/FAQ.html
上一篇:如何在andorid native layer中加log function.【转】


下一篇:linux安装python