Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. import urlparse
  2.  
  3. x = '/item/main.html?code=0364'
  4. query = urlparse.urlparse(x).query
  5. b = urlparse.parse_qs(query)
  6. print b['code']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement