集合(set)模块从2.3版本引进,可继承Set或ImmuteablSet来生成子类。虽然从Python2.4起使用集合类型,但是集合模块不会弃用。
以下是一些你可能认为有用的在线参考文章:
http://en.wikipedia.org/wiki/Set
http://www.geocities.com/basicmathsets/set.html
http://www.math.uah.edu/stat/foundations/Sets.xhtml