python 操作 set 方法 —— set.issubset()

xiaoxiao2021-02-28  112

set.issubset(other)

set <= other Test whether every element in the set is in other.

set < other Test whether the set is a proper subset of other, that is, set <= other and set != other.

转载请注明原文地址: https://www.6miu.com/read-45028.html

最新回复(0)