send_data.py 263 B

1234567891011
  1. import requests
  2. import json
  3. with open("./tt.json", "r", encoding="utf-8") as f:
  4. k = json.load(f)
  5. # cbd_photo qxz_add
  6. # http://192.168.0.36:8000
  7. response = requests.post(url="http://60.14.40.10:8002/api/cbd_photo", data=json.dumps(k))
  8. print(response.text)