python中的dataframe格式筛选字符串或含有多个值的方法时间:2022-12-09 09:54:11 key_word = ['1糖','0糖','3糖','开心就好','点赞关注']ind = '|'.join(key_word)data[data['weibo_content'].str.contains(ind)]