Set Methods

 0    18 informačný list    sir
stiahnuť mp3 vytlačiť hrať Skontrolujte sa
 
otázka Odpoveď
Returns a set, that is the intersection of two other sets.
začať sa učiť
. intersection() / &
Removes the items in this set that are not present in other, specified set(s).
začať sa učiť
. intersection_update() / &=
Returns a set containing the union of sets
začať sa učiť
. union() / |
Update the set with the union of this set and others
začať sa učiť
. update() / |=
Returns a set containing the difference between two or more sets.
začať sa učiť
. difference() / -
Removes the items in this set that are also included in another, specified set.
začať sa učiť
. difference_update() / -=
Returns a set with the symmetric differences of two sets
začať sa učiť
. symmetric_difference() / ^
Inserts the symmetric differences from this set and another
začať sa učiť
. symmetric_difference_update() / ^=
Returns a copy of the set.
začať sa učiť
. copy()
Removes all the elements from the set.
začať sa učiť
. clear()
Adds an element to the set.
začať sa učiť
. add()
Removes the specified element.
začať sa učiť
. remove()
Remove the specified item.
začať sa učiť
. discard()
Removes an element from the set
začať sa učiť
. pop()
Returns whether two sets have a intersection or not.
začať sa učiť
. isdisjoint()
Returns whether another set contains this set or not.
začať sa učiť
. issubset()
Returns whether this set contains another set or not.
začať sa učiť
. issuperset()
Returns the length of a set. (Inner method.)
začať sa učiť
. __len__

Ak chcete pridať komentár, musíte byť prihlásený.