import requests

url = 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4'

resp = requests.get(url)

with open('C:\\Users\\del\\Desktop\\新建文件夹\\3.mp4','wb') as f:
    f.write(resp.content)

 

 

 

python+requests——读取二进制文件并保存在本地——一个视频文件作为示例

 

相关文章:

  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2021-05-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2021-05-12
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
相关资源
相似解决方案