data2 = \
"""
{
"index" : {
"refresh_interval" : "-1"
}
}
""".encode("utf-8")
r=requests.put("http://localhost:9200/index/_settings",data = data2)
data2 = \
"""
{
"index" : {
"refresh_interval" : "-1"
}
}
""".encode("utf-8")
r=requests.put("http://localhost:9200/index/_settings",data = data2)
本文标题:requests的编码问题
本文链接:https://www.haomeiwen.com/subject/oovpuqtx.html
网友评论