1、Set基本数据类型
a、set集合,是一个无序且不重复的元素集合
classset(object):"""set() -> new empty set object
set(iterable) -> new set object
Build an unordered collection of unique elements."""
def add(self, *args, **kwargs): #real signature unknown
"""Add an element to a set,添加元素
This has no effect if the element is already present."""
pass
def clear(self, *args, **kwargs): #real signature unknown
"""Remove all elements from this set. 清楚内容"""
pass
def copy(self, *args, **kwargs): #real signature unknown
"""Return a shallow copy of a set. 浅拷贝"""
pass
def difference(self, *args, **kwargs): #real signature unknown
"""Return the difference of two or more sets as a new set. A中存在,B中不存在
(i.e. all elements that are in this set but not the others.)"""
pass
def difference_update(self, *args, **kwargs): #real signature unknown
"""Remove all elements of another set from this set. 从当前集合中删除和B中相同的元素"""
pass
def discard(self, *args, **kwargs): #real signature unknown
"""Remove an element from a set if it is a member.
If the element is not a member, do nothing. 移除指定元素,不存在不保错"""
pass
def intersection(self, *args, **kwargs): #real signature unknown
"""Return the intersection of two sets as a new set. 交集
(i.e. all elements that are in both sets.)"""
pass
def int