python url拼接
import datetime,requests
import json,time,urllib
import hashlib
self.url_domain = “www.baidu,com/”
url_data = {}
url_data["user"] = user
url_data = urllib.urlencode(url_data) #放在?之后的参数
url_json_data = {}
url_json_data = json.dumps(url_json_data)
url = self.url_domain + "/3/app/web/obaidu/%s?%s" % (id,url_data)