Skip to content

Instantly share code, notes, and snippets.

@baobao
Created Nov 3, 2017
Embed
What would you like to do?
import urllib.parse
API = "http://test.php"
values = {
'hoge':'01234',
'fuga':'piyo'
}
params = urllib.parse.urlencode(values)
url = API + "?" + params
print ("url : ", url);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment