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

posted on 2021-07-06 15:33  平凡之测  阅读(135)  评论(0编辑  收藏  举报

导航