Set Methods

 0    18 Datenblatt    sir
mp3 downloaden Drucken spielen überprüfen
 
Frage Antworten
Returns a set, that is the intersection of two other sets.
Lernen beginnen
. intersection() / &
Removes the items in this set that are not present in other, specified set(s).
Lernen beginnen
. intersection_update() / &=
Returns a set containing the union of sets
Lernen beginnen
. union() / |
Update the set with the union of this set and others
Lernen beginnen
. update() / |=
Returns a set containing the difference between two or more sets.
Lernen beginnen
. difference() / -
Removes the items in this set that are also included in another, specified set.
Lernen beginnen
. difference_update() / -=
Returns a set with the symmetric differences of two sets
Lernen beginnen
. symmetric_difference() / ^
Inserts the symmetric differences from this set and another
Lernen beginnen
. symmetric_difference_update() / ^=
Returns a copy of the set.
Lernen beginnen
. copy()
Removes all the elements from the set.
Lernen beginnen
. clear()
Adds an element to the set.
Lernen beginnen
. add()
Removes the specified element.
Lernen beginnen
. remove()
Remove the specified item.
Lernen beginnen
. discard()
Removes an element from the set
Lernen beginnen
. pop()
Returns whether two sets have a intersection or not.
Lernen beginnen
. isdisjoint()
Returns whether another set contains this set or not.
Lernen beginnen
. issubset()
Returns whether this set contains another set or not.
Lernen beginnen
. issuperset()
Returns the length of a set. (Inner method.)
Lernen beginnen
. __len__

Sie müssen eingeloggt sein, um einen Kommentar zu schreiben.