📜  python if in list multiple - Python代码示例

📅  最后修改于: 2022-03-11 14:45:56.065000             🧑  作者: Mango

代码示例1
>>> all(x in ['b', 'a', 'foo', 'bar'] for x in ['a', 'b'])
True