集合的使用
摘要:
#s = set(1, 2, 3, 4, 5, 6) # 创建一个集合 ''' list_1=[1,23,4,5,6,7,4,2] list_1=set(list_1) print (list_1) #去重 list_2=[2,34,5,6,72,32,342] list_3=list_1.intersection(list_2) print (list_3) #求交集 lis... 阅读全文
posted @ 2018-06-06 20:17 你是不夜星空 阅读(126) 评论(0) 推荐(0)
浙公网安备 33010602011771号