35. Autumn Mountain old driver

Write a python script, because the only white prostitute beginner chiefs of the ~ ~ ~ https://blog.csdn.net/STARSG0d/article/details/92683276

 1 import requests
 2 import re
 3 s = requests.Session()
 4 r = s.get("http://123.206.87.240:8002/qiumingshan/")
 5 searchObj = re.search(r'(\d+[+\-*])+(\d+)', r.text)
 6 d = {
 7 "value": eval(searchObj.group(0))
 8 }
 9 r = s.post("http://123.206.87.240:8002/qiumingshan/", data=d)
10 print(r.text)

运行结果:

Guess you like

Origin www.cnblogs.com/tqqnb/p/12119195.html