You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
682 B
33 lines
682 B
import requests
|
|
|
|
url = 'http://127.0.0.1:5000'
|
|
headers = {'Content-Type': 'application/json'}
|
|
data = {
|
|
"年龄": 50,
|
|
"血压": 80,
|
|
"比重": 1.02,
|
|
"白蛋白": 0,
|
|
"糖": 0,
|
|
"红细胞": 1,
|
|
"脓细胞": 0,
|
|
"脓细胞团": 0,
|
|
"细菌": 0,
|
|
"随机血糖": 120,
|
|
"血尿素": 10,
|
|
"血清肌酐": 0.8,
|
|
"钠": 135,
|
|
"钾": 4,
|
|
"血红蛋白": 15,
|
|
"红细胞压积": 45,
|
|
"白细胞计数": 7000,
|
|
"红细胞计数": 5.5,
|
|
"高血压": 0,
|
|
"糖尿病": 0,
|
|
"冠心病": 0,
|
|
"食欲": 1,
|
|
"肢端水肿": 0,
|
|
"贫血": 0
|
|
}
|
|
|
|
response = requests.post(url, json=data, headers=headers)
|
|
print(response.json())
|
|
|