Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
タイトルはかなり自明です。16の異なる変数のいずれかが真である場合に条件が満たされるようにしたいのですが、A = TrueまたはB = True ...などと入力するよりも、より良い/よりクリーンな方法が必要だと感じています.ある?
使用できますany():
any()
any([A, B, ...])