code: def write_image(r, filename):
      
      with open(filename, 'wb') as fd:
          for chunk in r.iter_content(1024):
              fd.write(chunk)
docs: 将流式数据存储在文件中
      :param r: 响应
      :param filename: 文件名
      :return: