gpt4 book ai didi

python - XlsxWriter 无法设置标题

转载 作者:太空宇宙 更新时间:2023-11-04 00:41:36 24 4
gpt4 key购买 nike

此代码适用于除 3 个 set_headers() 之外的所有行有什么想法吗?

ws.set_print_scale(40)
ws.set_header('&L&F')
ws.set_header('&CNewCo Inc.')
ws.set_header('&R&D')
ws.set_portrait()

f1h = wb.add_format()
ws.set_column(0, 0, 5)

最佳答案

您应该改为发出单个 set_header() 命令:

ws.set_header('&L&F &CNewCo Inc. &R&D')

关于python - XlsxWriter 无法设置标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41704599/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com