计算式子的值然后使用post方法传值。直接脚本跑。
import requests
import re
url = "http://123.206.87.240:8002/qiumingshan/"
s = requests.session()
htmlsource = s.get(url).text
exp = re.search(r'(d+[+-*])+(d+)',htmlsource).group()
post = {'value':eval(exp)}
a = s.post(url,data=post)
print(a.text)