close
方法一:
import openpyxl,os
def showData():
wb=openpyxl.load_workbook('test.xlsx')
ws=wb.get_sheet_by_name('test')
m_row=ws.max_row+1
m_column=ws.max_column+1
for r in range(1,m_row):
for c in range(1,m_column):
print(ws.cell(row=r,column=c).value,end='\t')
print()
方法二:
for row in ws.rows:
for cell in row:
print(cell.value,end='\t')
print()
全站熱搜
留言列表