Set Methods

 0    18 adatlap    sir
letöltés mp3 Nyomtatás játszik ellenőrizze magát
 
kérdés válasz
Returns a set, that is the intersection of two other sets.
kezdjen tanulni
. intersection() / &
Removes the items in this set that are not present in other, specified set(s).
kezdjen tanulni
. intersection_update() / &=
Returns a set containing the union of sets
kezdjen tanulni
. union() / |
Update the set with the union of this set and others
kezdjen tanulni
. update() / |=
Returns a set containing the difference between two or more sets.
kezdjen tanulni
. difference() / -
Removes the items in this set that are also included in another, specified set.
kezdjen tanulni
. difference_update() / -=
Returns a set with the symmetric differences of two sets
kezdjen tanulni
. symmetric_difference() / ^
Inserts the symmetric differences from this set and another
kezdjen tanulni
. symmetric_difference_update() / ^=
Returns a copy of the set.
kezdjen tanulni
. copy()
Removes all the elements from the set.
kezdjen tanulni
. clear()
Adds an element to the set.
kezdjen tanulni
. add()
Removes the specified element.
kezdjen tanulni
. remove()
Remove the specified item.
kezdjen tanulni
. discard()
Removes an element from the set
kezdjen tanulni
. pop()
Returns whether two sets have a intersection or not.
kezdjen tanulni
. isdisjoint()
Returns whether another set contains this set or not.
kezdjen tanulni
. issubset()
Returns whether this set contains another set or not.
kezdjen tanulni
. issuperset()
Returns the length of a set. (Inner method.)
kezdjen tanulni
. __len__

Kommentár közzétételéhez be kell jelentkeznie.