摘要: # -*- coding: utf8 -*- set1 = set('abcd') set2 = set('cdef') print(set1 - set2) # 差集 set1相对与set2 多什么 print(set2 - set1) print(set1 | set2) # 并集,两个集合合并 阅读全文
posted @ 2019-12-04 21:13 就是想学习 阅读(171) 评论(0) 推荐(0)