for row in sheet.iter_rows():
for cell in row:
if cell.value is not None:
cell_compare=str(cell.value)
print(cell_compare.find(keyword))
大体的意思是
0 1 2 3 4 代表第几个位置找到这个子字符串
-1代表没有答案
for row in sheet.iter_rows():
for cell in row:
if cell.value is not None:
cell_compare=str(cell.value)
print(cell_compare.find(keyword))
大体的意思是
0 1 2 3 4 代表第几个位置找到这个子字符串
-1代表没有答案