python 集合操作

b = set([0, 1, 3, 4, 5]) c = set([3, 4, 5, 6, 7]) print b & c #求交集 print b | c #求联集 print b - c #只留下 b 独有的 
原文地址:https://www.cnblogs.com/finallyliuyu/p/2360839.html