df1 = df[(df.tag!=39)&(df.company.str.contains('火锅',na=False))] na=False就是如果遇到空,就令其等于False 转载于:https://www.cnblogs.com/yjybupt/p/11497901.html