WebLinuxStudy

导航

 

2022年10月27日

摘要: a = [1, 2, 3, 4, 5]b = [3, 4, 5, 6, 7]# a与b合并在一起组成的集合c = list(set(a).union(set(b)))print(c)# c = [1, 2, 3, 4, 5, 6, 7]# a中存在,而且b中也存在d = list(set(a).in 阅读全文
posted @ 2022-10-27 16:21 WebLinuxStudy 阅读(160) 评论(0) 推荐(0)