collections模块集结了Python中的高性能的容器数据类型,这些数据类型主要包括:namedtuple()、deque、Counter、OrderedDiect、defaultdict。他们作为了替换内建(built-in)容器数据类型dict、list、set、tuple的可选方案。
** namedtuple()** : http://stackoverflow.com/questions/2970608/what-are-named-tuples-in-python http://docs.python.org/2/library/collections.html?highlight=collections#collections.namedtuple