import xlrd
def read_excel(file_name,index):
excel = xlrd.open_workbook(file_name)
sheet = excel.sheets()[index]
return sheet
if name == 'main':
table = read_excel('2.xlsx ', 0)
for i in range(1,table.nrows):
rows = table.row_values(i)
print(rows)