目录1. 什么是迭代器2. 迭代器协议2.1 __iter__() 方法2.2 __next__() 方法2.3 示例代码2.4 迭代器的优点3. 创建自定义迭代器示例代码4. 迭代器的高级用法4.1 无限序列4.2 示例代码4.3 文件迭代器4.4 示例代码5. 综合
I have a scenario where I want to show hierarchical data in a DataGrid in Silverlight 3 while having the header rows still have the standard set of cells and being editable. The user needs to be able