# Python CodeRecipe|issubset()の使い方
❮ Home ❮ Set Methods
# issubset()の例1
Return True if all items set
x are present in set y:
x = {"a", "b", "c"}y = {"f", "e", "d",
"c", "b", "a"}
z = x.issubset(y) print(z)
# issubset()の定義及び使い方
issubset()関数は、すべてのアイテムが がセット内に存在する場合はFalseを返します。
# issubset()の構文
set.issubset(set)
# issubset()の引数
パラメータ 説明
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
x are present in set y:
x = {"a", "b", "c"}y = {"f", "e", "d",
"c", "b"}
z = x.issubset(y) print(z)
❮ Home ❮ Set Methods