每天努力一点点,坚持下去 ------ 博客首页

如何把接口返回文件流读取后写入Excel

代码:

res = res.content  #接口返回的内容
with open(path,mode='wb') as file:  #excel的路径
    file.write(res) 

 

posted @ 2022-11-14 18:05  他还在坚持嘛  阅读(24)  评论(0编辑  收藏  举报