如何检查python中的列表是否是另一个列表的一部分并保留顺序。例子:
a = [3, 4, 1, 2, 5]
b = [4, 1, 2]
Answer is True
a = [3, 4, 1, 0, 2, 5]
Answer is False as the order is not matched
POPMUISE
手掌心
相关分类