Find intersection sets between list of sets
问题 The following question is on python 3.6. Suppose I have lists of sets, for example L1 = [{2,7},{2,7,8},{2,3,6,7},{1,2,4,5,7}] L2 = [{3,6},{1,3,4,6,7},{2,3,5,6,8}] L3 = [{2,5,7,8},{1,2,3,5,7,8}, {2,4,5,6,7,8}] I need to find all the intersection sets between each element of L1, L2, and L3. E.g.: {2,7}.intersection({3,6}).intersection({2,5,7,8})= empty {2,7}.intersection({3,6}).intersection({1,2,3,5,7,8})= empty {2,7}.intersection({3,6}).intersection({2,4,5,6,7,8})= empty {2,7}.intersection({1