>>> L1 = [2,3,4]>>> L2 = [1,2]>>> [i for i in L1 if i in L2][2]>>> S1 = set(L1)>>> S2 = set(L2)>>> S1.intersection(S2)set([2])
欢迎分享,转载请注明来源:内存溢出
>>> L1 = [2,3,4]>>> L2 = [1,2]>>> [i for i in L1 if i in L2][2]>>> S1 = set(L1)>>> S2 = set(L2)>>> S1.intersection(S2)set([2])
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)