类名:set
1 def add(self, *args, **kwargs): # real signature unknown 2 """ 向集合中添加元素,如果该元素已存在则不添加 """ 3 """ 4 Add an element to a set. 5 6 This has no effect if the element is already present. 7 """ 8 pass 9 10 def clear(self, *args, **kwargs): # real signature unknown 11 """ 清空集合 """ 12 """ Remove all elements from this set. """ 13 pass 14 15 def copy(self, *args, **kwargs): # real signature unknown 16 """ 浅拷贝 """ 17 """ Return a shallow copy of a set. """ 18 pass 19 20 def difference(self, *args, **kwargs): # real signature unknown 21 """ 返回A中存在B中不存在的元素 """ 22 """ 23 Return the difference of two or more sets as a new set. 24 25 (i.e. all elements that are in this set but not the others.) 26 """ 27 pass 28 29 def difference_update(self, *args, **kwargs): # real signature unknown 30 """ 返回A中存在B中不存在的元素并将其更新给A """ 31 """ Remove all elements of another set from this set. """ 32 pass 33 34 def discard(self, *args, **kwargs): # real signature unknown 35 """ 移除指定元素,不存在不报错 """ 36 """ 37 Remove an element from a set if it is a member. 38 39 If the element is not a member, do nothing. 40 """ 41 pass 42 43 def intersection(self, *args, **kwargs): # real signature unknown 44 """ 交集 """ 45 """ 46 Return the intersection of two sets as a new set. 47 48 (i.e. all elements that are in both sets.) 49 """ 50 pass 51 52 def intersection_update(self, *args, **kwargs): # real signature unknown 53 """ 取交集并更新到A """ 54 """ Update a set with the intersection of itself and another. """ 55 pass 56 57 def isdisjoint(self, *args, **kwargs): # real signature unknown 58 """ 如果没有交集返回True,否则返回False """ 59 """ Return True if two sets have a null intersection. """ 60 pass 61 62 def issubset(self, *args, **kwargs): # real signature unknown 63 """ 如果A是B的子集,返回True,否则返回False """ 64 """ Report whether another set contains this set. """ 65 pass 66 67 def issuperset(self, *args, **kwargs): # real signature unknown 68 """ 如果A是B的父集,返回True,否则返回False """ 69 """ Report whether this set contains another set. """ 70 pass 71 72 def pop(self, *args, **kwargs): # real signature unknown 73 """ 随机删除集合中的元素 """ 74 """ 75 Remove and return an arbitrary set element. 76 Raises KeyError if the set is empty. 77 """ 78 pass 79 80 def remove(self, *args, **kwargs): # real signature unknown 81 """ 移除集合中的指定元素 """ 82 """ 83 Remove an element from a set; it must be a member. 84 85 If the element is not a member, raise a KeyError. 86 """ 87 pass 88 89 def symmetric_difference(self, *args, **kwargs): # real signature unknown 90 """ 对称差集 """ 91 """ 92 Return the symmetric difference of two sets as a new set. 93 94 (i.e. all elements that are in exactly one of the sets.) 95 """ 96 pass 97 98 def symmetric_difference_update(self, *args, **kwargs): # real signature unknown 99 """ 取对称差集并更新到A """ 100 """ Update a set with the symmetric difference of itself and another. """ 101 pass 102 103 def union(self, *args, **kwargs): # real signature unknown 104 """ 并集 """ 105 """ 106 Return the union of sets as a new set. 107 108 (i.e. all elements that are in either set.) 109 """ 110 pass 111 112 def update(self, *args, **kwargs): # real signature unknown 113 """ 更新 """ 114 """ Update a set with the union of itself and others. """ 115 pass 116 117 def __and__(self, *args, **kwargs): # real signature unknown 118 """ Return self&value. """ 119 pass 120 121 def __contains__(self, y): # real signature unknown; restored from __doc__ 122 """ x.__contains__(y) <==> y in x. """ 123 pass 124 125 def __eq__(self, *args, **kwargs): # real signature unknown 126 """ Return self==value. """ 127 pass 128 129 def __getattribute__(self, *args, **kwargs): # real signature unknown 130 """ Return getattr(self, name). """ 131 pass 132 133 def __ge__(self, *args, **kwargs): # real signature unknown 134 """ Return self>=value. """ 135 pass 136 137 def __gt__(self, *args, **kwargs): # real signature unknown 138 """ Return self>value. """ 139 pass 140 141 def __iand__(self, *args, **kwargs): # real signature unknown 142 """ Return self&=value. """ 143 pass 144 145 def __init__(self, seq=()): # known special case of set.__init__ 146 """ 147 set() -> new empty set object 148 set(iterable) -> new set object 149 150 Build an unordered collection of unique elements. 151 # (copied from class doc) 152 """ 153 pass 154 155 def __ior__(self, *args, **kwargs): # real signature unknown 156 """ Return self|=value. """ 157 pass 158 159 def __isub__(self, *args, **kwargs): # real signature unknown 160 """ Return self-=value. """ 161 pass 162 163 def __iter__(self, *args, **kwargs): # real signature unknown 164 """ Implement iter(self). """ 165 pass 166 167 def __ixor__(self, *args, **kwargs): # real signature unknown 168 """ Return self^=value. """ 169 pass 170 171 def __len__(self, *args, **kwargs): # real signature unknown 172 """ Return len(self). """ 173 pass 174 175 def __le__(self, *args, **kwargs): # real signature unknown 176 """ Return self<=value. """ 177 pass 178 179 def __lt__(self, *args, **kwargs): # real signature unknown 180 """ Return self<value. """ 181 pass 182 183 @staticmethod # known case of __new__ 184 def __new__(*args, **kwargs): # real signature unknown 185 """ Create and return a new object. See help(type) for accurate signature. """ 186 pass 187 188 def __ne__(self, *args, **kwargs): # real signature unknown 189 """ Return self!=value. """ 190 pass 191 192 def __or__(self, *args, **kwargs): # real signature unknown 193 """ Return self|value. """ 194 pass 195 196 def __rand__(self, *args, **kwargs): # real signature unknown 197 """ Return value&self. """ 198 pass 199 200 def __reduce__(self, *args, **kwargs): # real signature unknown 201 """ Return state information for pickling. """ 202 pass 203 204 def __repr__(self, *args, **kwargs): # real signature unknown 205 """ Return repr(self). """ 206 pass 207 208 def __ror__(self, *args, **kwargs): # real signature unknown 209 """ Return value|self. """ 210 pass 211 212 def __rsub__(self, *args, **kwargs): # real signature unknown 213 """ Return value-self. """ 214 pass 215 216 def __rxor__(self, *args, **kwargs): # real signature unknown 217 """ Return value^self. """ 218 pass 219 220 def __sizeof__(self): # real signature unknown; restored from __doc__ 221 """ S.__sizeof__() -> size of S in memory, in bytes """ 222 pass 223 224 def __sub__(self, *args, **kwargs): # real signature unknown 225 """ Return self-value. """ 226 pass 227 228 def __xor__(self, *args, **kwargs): # real signature unknown 229 """ Return self^value. """ 230 pass 231 232 __hash__ = None