コード例 #1
0
ファイル: median_unique.py プロジェクト: D-Sharma/cc-example
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)
コード例 #3
0
ファイル: words_tweeted.py プロジェクト: D-Sharma/cc-example
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)