host = re_data_yaml.get_host()
h = re_data_yaml.get_headers()
url = host + '/api/update_face_photo'
files = {"file": ('aaa.jpg', open("F:\\aaa.jpg", 'rb'), "image/jpg")}       # 上传图片
r = requests.post(url, files=files, headers=h)
result = r.json()
img_photo = re.findall(r"http(.+?)cn", r.json()["data"]["img_photo"])       # 正则提取数据

 

相关文章:

  • 2022-12-23
  • 2021-09-27
  • 2021-09-29
  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
  • 2022-02-07
猜你喜欢
  • 2022-02-22
  • 2022-01-08
  • 2022-01-13
  • 2021-05-26
  • 2022-01-08
  • 2021-12-03
相关资源
相似解决方案