def excel_data(y):
book=xlrd.open_workbook('C:/request/case/case.xls')
sheet= book.sheet_by_name('Sheet1')
data=[]
for i in range(0,sheet.nrows):
if sheet.row_values(i)[0]=='y':
#sheet.row_values(i))
data.append(sheet.row_values(i))
return data
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) | Powered by Discuz! X3.2 |