2017-02-12 120 views

回答

0

使用requests.post methodfiles關鍵字參數來發布多編碼文件:

import requests 

url = 'http://...' 
with open('blahblah.jpg', 'rb') as f: 
    requests.post(url, files={'blahblah': f})