企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
~~~ header={} video_response=requests.get(url='https://xxxxx',headers=header) with open('test.mp4','wb') as v: v.write(video_response.content) ~~~ 注意:写入文件要二进制,也就是open第二个参数为wb 还有返回的数据提取要用content属性,不能使用text属性