迭代器模式(Iterator Pattern):Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.它提供一种方法访问一个容器对象中各个元素,而又不需暴露该对象的内部细节。