python列表进行模糊查询 a=['时间1', '时间2', '时间3', 'ab','asds'] dd = [i for i,x in enumerate(a) if x.find('s')!=-1] print(dd)