将流式数据存储在文件中
    :param r: 响应
    :param filename: 文件名
    :return:

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