摘要:
```
a = set([1,2,3,4])
b = set([3,4,5,6]) print(a.intersection(b)) # 交集 {3, 4}
print(a.union(b)) # 并集 {1, 2, 3, 4, 5, 6}
print(a.difference(b)) # 差集 in a but not in b {1, 2}
print(b.difference(a)) ... 阅读全文
posted @ 2018-02-21 11:20
Hi_Tao
阅读(54)
评论(0)
推荐(0)