xlrd——merged_cells

https://www.2cto.com/kf/201501/373655.html

获取合并的单元格

读取文件的时候需要将formatting_info参数设置为True,默认是False

merged_cells返回的这四个参数的含义是:(row,row_range,col,col_range),其中[row,row_range)包括row,不包括row_range,col也是一样,即(1, 3, 4, 5)的含义是:第1到2行(不包括3)合并,(7, 8, 2, 5)的含义是:第2到4列合并。

python openpyxl 操作 excel

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-04
  • 2022-12-23
  • 2021-04-26
  • 2021-06-08
  • 2022-12-23
相关资源
相似解决方案