摘要: 文件编码: 阅读全文
posted @ 2018-08-07 22:16 谭普利特 阅读(133) 评论(0) 推荐(0) 编辑
摘要: list_1 = set([1, 5, 3, 6, 8]) list_2 = set([2, 4, 5, 8, 6]) #交集 # print(list_1.intersection(list_2)) & # {8, 5, 6} #并集 # print(list_1.union(list_2)) | # {1, 2, 3, 4, 5, 6, 8} #差集(in list_... 阅读全文
posted @ 2018-08-07 14:13 谭普利特 阅读(130) 评论(0) 推荐(0) 编辑