as shown in the figure, I pierced two values for the key value of entitylist when transmitting data, one is Haidilao and the other is Huashang. When I use
request.form.get ("entityList") to receive the value corresponding to key, only one is displayed. How can I modify it?
import requests
user_info ={
"siteDomain": "http%3A%2F%2Firm.cninfo.com.cn%2Fircs%2Finteraction%2FviewtioForSzse.do%3FstionId%3D6103297 ",
"title": """
""",
"content": """ : 511125
""",
"entityList":[(""),("")]
}
r = requests.post("http://127.0.0.1:5000/SVM_TextSort/", data=user_info)
as shown in the code, I am sending data with the above code and receiving it with the following code, but entitylist only shows a sea bottom
@app.route("/SVM_TextSort/", methods=["POST"])
def add_task():
-sharptime_start=time.time()
url = request.form.get("siteDomain")
entitylist = request.form.get("entityList")
text = request.form.get("content")
title = request.form.get("title")
print (entitylist)