摘要: __author__ = '12711'#-*- coding:utf-8 -*-F=set([1,2,3,4,5])#创建一个数字集合G=set([1])S=set("abcd")#创建一个字符集合print(F&G)#交集print(F|G)#并集print(F-G)#差集print(F^G)# 阅读全文
posted @ 2018-09-20 21:13 知冬 阅读(74) 评论(0) 推荐(0) 编辑