阅读背景:

如果一个列表中的元素被删除,则python检查一个列表是否可以等于另一个列表(在值和顺序中)

来源:互联网 

I have two lists of input (call one a, the other b), I am trying to see if a can be matched to b if elements of a are removed. For example if a = [1, 1, 2, 3, 3, 3, 4] and b = [1,2,3] , the function would find that it can remove one occurrence of 1, two occurrences of 3 and the only occurrence of 4 so that a == b. I don't know how I would go about getting this to work in Python.I have two lists of input (call one a, the othe




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: