摘要: ``` 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 阅读(49) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-02-14 12:06 Hi_Tao 阅读(1) 评论(0) 推荐(0) 编辑