Created
June 26, 2012 08:53
-
-
Save luztak/2994515 to your computer and use it in GitHub Desktop.
Parse url parameters into dict.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def parseurlpara(parastr): | |
plist=parastr.split("&") | |
pdict={} | |
for item in plist: | |
itema=item.split("=") | |
pdict[itema[0]]=itema[1] | |
return pdict |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment