def write_csv_file(filename, result, path):
"""Writes the result to csv with the given filename.
Args:
filename (str): Filename to write to.
path (str): Directory path to use.
"""
output = open(path + filename + '.csv', 'wb')
writer = csv.writer(output, quoting=csv.QUOTE_ALL, lineterminator='\n')
for val in result:
writer.writerow([val])
# Print one a single row
# writer.writerow(result)
评论列表
文章目录