📜  列表是另一个列表的子集 - Python 代码示例

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

代码示例1
one = [1, 2, 3]
two = [9, 8, 5, 3, 2, 1]

all(x in two for x in one)