from io import BytesIO
import requests
import xlrd
import openpyxl
sess = requests.session()
download_res = sess.post(export_post_url, json = export_post_data, headers = header_info)
f = BytesIO(content) #先变成BytesIO对象
#如果是xls类型,想使用xlrd来处理
book = xlrd.open_workbook(file_contents = f.getvalue())
#如果是xlsx类型,使用openpyxl来处理
wb = openpyxl.load_workbook(filename = f)