pandas 读取文档流 with open("/Users/a123/Desktop/1.xlsx",'rb') as f: res= io.BytesIO(f.read()) pd.read_excel(res)