How do I tell if exactly N conditions in a set of M conditions are true in Python?

前端 未结 0 487
北恋
北恋 2020-11-27 09:09

The title is a bit confusing, so I\'ll give an example. Say I have a set of 4 conditions, [A,B,C,D], where each condition can either be true or false. For example, condition

相关标签:
回答
  • 消灭零回复
提交回复
热议问题