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()
此代码将符号“+”放在底部。如何将其移动到顶部?像这样
我是一名优秀的程序员,十分优秀!