使用 xlwt python 合并两个以上的单元格

Merging more than two cells using xlwt python

我正在尝试合并 excel 文件的一行中的 4 列。这个 link 有一些关于如何为两行做的建议:How to write a cell with multiple columns in xlwt? 它用于合并两列和两行的行:

sheet.write_merge(0, 0, 0, 1, 'Long Cell')

但是,当我尝试仅合并 4 行时,相同的代码语法不起作用。我的代码:

sh.write_merge(0,4,0,5,0,6,0,7,'Start point\nCo-ordinates')

我基本上需要 this.

也许是这个?

sh.write_merge(0, 0, 4, 7, 'Start point\nCo-ordinates')