Set Methods

 0    18 フィッシュ    sir
mp3をダウンロードする 印刷 遊びます 自分をチェック
 
質問 答え
Returns a set, that is the intersection of two other sets.
学び始める
. intersection() / &
Removes the items in this set that are not present in other, specified set(s).
学び始める
. intersection_update() / &=
Returns a set containing the union of sets
学び始める
. union() / |
Update the set with the union of this set and others
学び始める
. update() / |=
Returns a set containing the difference between two or more sets.
学び始める
. difference() / -
Removes the items in this set that are also included in another, specified set.
学び始める
. difference_update() / -=
Returns a set with the symmetric differences of two sets
学び始める
. symmetric_difference() / ^
Inserts the symmetric differences from this set and another
学び始める
. symmetric_difference_update() / ^=
Returns a copy of the set.
学び始める
. copy()
Removes all the elements from the set.
学び始める
. clear()
Adds an element to the set.
学び始める
. add()
Removes the specified element.
学び始める
. remove()
Remove the specified item.
学び始める
. discard()
Removes an element from the set
学び始める
. pop()
Returns whether two sets have a intersection or not.
学び始める
. isdisjoint()
Returns whether another set contains this set or not.
学び始める
. issubset()
Returns whether this set contains another set or not.
学び始める
. issuperset()
Returns the length of a set. (Inner method.)
学び始める
. __len__

コメントを投稿するにはログインする必要があります。