开发环境:win10+python3.6+Eclipse
错误代码:for intersection, traffic_light in self.intersections.iteritems():
错误描述:AttributeError: 'collections.OrderedDict' object has no attribute 'iteritems'
原因:python3中用items()代替python2中的iteritems(),同理还有iterkeys等,都需要去掉iter前缀
正确代码:for intersection, traffic_light in self.intersections.items():