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

来源:互联网 发布:打投做数据是什么 编辑:程序博客网 时间:2024/06/08 18:08

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.

3 0
原创粉丝点击