def skuname_filter(skuname):
return "Nonprofit Staff Pricing" ,"DaaS Bundle" not in skuname
ret = list(filter(skuname_filter, skuname))
print(ret)
执行结果:
['DaaS Bundle -', 'xxxxx Nonprofit Staff Pricing', 'MS']
20210812
<lianchun_automation.API.DB_CustomerInformation.DBCheck object at 0x114bb1400>
['DaaS Bundle -', 'xxxxx Nonprofit Staff Pricing', 'MS']
我怎么写可以,可直接将 "Nonprofit Staff Pricing"和"DaaS Bundle"过滤掉只将“ MS”输出就行呢?