Пример #1
0
def save(result, path):
    '''Converts list of integers in result to a string and writes it to file. '''
    output = '\n'.join(map(str,result))
    return data_save.write_to_text_file(output, path)
Пример #2
0
def save(result, path):
    '''Format text output in result list to a string and writes it to file. '''
    output='\n'.join(['%-25s %-10s'%s for s in result])
    return data_save.write_to_text_file(output, path)