当先锋百科网

首页 1 2 3 4 5 6 7

fromxlrdimportopen_workbookwb=open_workbook(r'd:/222.xlsx')tb=wb.sheets()[0]data=[]forrinrange(tb.nrows):val=[]forcinrange(tb.ncols):val.append(tb.cell_value(r,c))data.append(tuple(val))print(data)