Skip to content

Instantly share code, notes, and snippets.

@baobao
Created November 3, 2017 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baobao/cb6ed9500d68ff19f1d0f6c7a469c0cd to your computer and use it in GitHub Desktop.
Save baobao/cb6ed9500d68ff19f1d0f6c7a469c0cd to your computer and use it in GitHub Desktop.
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