📜  excel写专栏——Python代码示例

📅  最后修改于: 2022-03-11 14:46:12.392000             🧑  作者: Mango

代码示例1
import xlsxwriter

workbook = xlsxwriter.Workbook('write_list.xlsx')
worksheet = workbook.add_worksheet()

my_list = [1, 2, 3, 4, 5]

for row_num, data in enumerate(my_list):
    worksheet.write(row_num, 0, data)

workbook.close()