如何勾勒出顶部?

时间:2014-01-13 12:28:27

标签: python excel xlsxwriter

import xlsxwriter

workbook = xlsxwriter.Workbook('outline_collapsed_test.xlsx')
worksheet1 = workbook.add_worksheet('Outlined Rows')

worksheet1.set_row(2, None, None, {'level': 2})
worksheet1.set_row(3, None, None, {'level': 2})
worksheet1.set_row(4, None, None, {'level': 2})
worksheet1.set_row(5, None, None, {'level': 1})

worksheet1.set_row(6, None, None, {'level': 2})
worksheet1.set_row(7, None, None, {'level': 2})
worksheet1.set_row(8, None, None, {'level': 2})
worksheet1.set_row(9, None, None, {'level': 1})

workbook.close()

此代码放置符号' +'在底部。如何将它移到顶部?像这样enter image description here

1 个答案:

答案 0 :(得分:1)