urlencode编码
from urllib.parse import urlencode
params_dict = {
"username":"gengzeshi",
"age": 18
}
url = "https://baidu.com"
print(url+"?"+urlencode(params_dict))
from urllib.parse import urlencode
params_dict = {
"username":"gengzeshi",
"age": 18
}
url = "https://baidu.com"
print(url+"?"+urlencode(params_dict))