2019-04-15 18:39发布 生成海报
import requests multiple_files = {'pic': ('1111111.jpg', open( r'QQ截图20180905172943.jpg', 'rb'), 'image/jpg')} resp = requests.post(r'http://ocr.shouji.sogou.com/v2/ocr/json', files=multiple_files) str_json = resp.json() print(str_json)