gpt4 book ai didi

python - 如何在 python 中使用 xlsxwriter 卡住 excel 文件中的行和列

转载 作者:太空宇宙 更新时间:2023-11-03 15:18:31 24 4
gpt4 key购买 nike

我想在 python 中使用 xlsxwriter 卡住我的 excel 文件中的第一行和第一列,我尝试了下面的代码,当我删除卡住代码的第二行时,它似乎只卡住了该列列,它卡住了第一行,似乎代码中的第二行覆盖了第一行。

worksheet.freeze_panes(1, 0) # # Freeze the first row.
worksheet.freeze_panes(0, 1) # Freeze the first column.

我检查了文档 here , 似乎没有帮助。
谢谢!

最佳答案

我找到了这个 linne,它帮了我的忙!!

worksheet.freeze_panes(1, 1) # # Freeze the first row and column

关于python - 如何在 python 中使用 xlsxwriter 卡住 excel 文件中的行和列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18814473/

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