📅  最后修改于: 2022-03-11 14:45:34.620000             🧑  作者: Mango
def post_image(img_file):
""" post image and return the response """
img = open(img_file, 'rb').read()
response = requests.post(URL, data=img, headers=headers)
return response