sets

sets — Unordered collections of unique elements

New in version 2.3.

Deprecated since version 2.6: The built-in set/frozenset types replace this module.

The sets module provides classes for constructing and manipulating unordered collections of unique elements. Common uses include membership testing, removing duplicates from a sequence, and computing standard math operations on sets such as intersection, union, difference, and symmetric difference.

登录查看完整内容