# python_senior **Repository Path**: dc-melo/python_senior ## Basic Information - **Project Name**: python_senior - **Description**: description - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: http://www.dc-melo.com - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-01-27 - **Last Updated**: 2022-01-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 手动写了生成器,迭代器,装饰器,以及用闭包实现的装饰器 1)可迭代对象包含迭代器。 2)如果一个对象拥有__iter__方法,其是可迭代对象;如果一个对象拥有next方法,其是迭代器。 3)定义可迭代对象,必须实现__iter__方法;定义迭代器,必须实现__iter__和next方法。