Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
标题基本上解释了它,但我终生无法摆脱 A4 页面大小,我不得不单独调整每个文件的大小。我有很多文件。现在快2000了,有点老了。
感谢任何提前提供帮助的人!
sheet.paper_size_code = 1
是你想要的。
例子:
book = Workbook() sheet = book.add_sheet('2013') sheet.paper_size_code = 1 sales_units(OUTPUT, header_list, DATE, book, sheet) book.save('Projections.xls')