我正在逐行在新的excel / csv文件中插入数据,但是当我打开excel工作表时,每行数据后都有一个空白行。谁能帮我代码有什么问题吗? !
def write_into_csv(row_list,destination_path):
with open(destination_path, mode='w') as employee_file:
employee_writer = csv.writer(employee_file)
for row_1 in row_list:
print( "row1 ", row_1)
employee_writer.writerow(row_1)
return
并且此代码使用excel提供此输出: