from io import StringIO


def output_env(data):
    """
    >>> output_env({'a':1, 'b':2})
    'a=1\\nb=2\\n'
    """
    output = StringIO()
    for key, value in data.items():
        output.write(f'{key}={value}\n')
    output.seek(0)
    return output.read()