计算式子的值然后使用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)
![](https://img2018.cnblogs.com/i-beta/1772288/201911/1772288-20191130141152184-896198472.png)