发布时间:2019-09-07 07:57:48编辑:auto阅读(1917)
data = {"add": {"doc": params, "commitWithin": 1000}}
headers = {"Content-type": "application/json"}
re = requests.post(url=url, data=json.dumps(data),
headers=headers)
params = list()
params.append(('q', "id:" + id))
response = requests.post(url=url, data=params)
def escape_query_chars(s):
escape_chars = set(
('\\', '+', '-', '!', '(', ')', ':', '^', '[', ']', '\"', '{', '}', '~', '*', '?', '|', '&', '', '/', ' ','\t'))
arr = [c for c in s if (c not in escape_chars)]
return "".join(arr).replace("\xe3\x80\x80", "")
上一篇: Python socket实现多对多全双
下一篇: Python输出csv、excel表格
47863
46424
37314
34759
29332
25990
24945
19967
19563
18050
5806°
6433°
5946°
5975°
7079°
5925°
5963°
6456°
6417°
7798°