python excel 读取:如何读取符合多个条件的记录【出差、外出、调休、年假】

if 语句结合or

实现:读取所有出差、外出、调休、年假的记录

 if '出差' in str(c_cell) or '外出' in str(c_cell) or'调休' in str(c_cell) or '年假' in str(c_cell)  :            
                sheet_data[keys[i]] = c_cell
原文地址:https://www.cnblogs.com/luoditao/p/14977189.html