# Python CodeRecipe|issuperset()の使い方
❮ Home ❮ Set Methods
# issuperset()の例1
Return True if all items set
y are present in set
x:
x = {"f", "e", "d",
"c", "b", "a"}y = {"a", "b", "c"}
z = x.issuperset(y) print(z)
# issuperset()の定義及び使い方
issuperset()関数は、すべての項目が は、元のセットに存在する場合はFalseを返します。
# issuperset()の構文
set.issuperset(set)
# issuperset()の引数
パラメータ 説明
set 必須. The set to search for equal items in
# Example
What if not all items are present in the specified set?
Return False if not all items in set
y are present in set
x:
x = {"f", "e", "d",
"c", "b"}
y = {"a", "b", "c"}
z = x.issuperset(y) print(z)
❮ Home ❮ Set Methods