一、方式1:sheet.cell(坐标)
需求2:我们想读取第3行,第4列单元格的内容,与其他“属性”
cell = sheet.cell(3,4)# 读取这个单元格内容print(cell.value)# 读取这个单元格的其他属性print(cell.style)print(cell.font)print(cell.alignment)
二、方式2:sheet[‘excel坐标’]
需求2:我们想读取第3行,第4列单元格的内容,与其他“属性”
cell = sheet['D3']# 读取这个单元格内容print(cell.value)# 读取这个单元格的其他属性print(cell.style)print(cell.font)print(cell.alignment)
