<reponame>ch1huizong/learning
#!/usr/bin/env python

from urlparse import urlparse

url = 'http://netloc/path;param?query=arg#frag'
parsed = urlparse(url)
print parsed

#!/usr/bin/env python

from urlparse import urlparse

url = 'http://netloc/path;param?query=arg#frag'
parsed = urlparse(url)
print parsed
#!/usr/bin/env python #frag'