迭代器

  • 必须要有__iter__(self)方法
  • 还要有__next__(sefl)方法

iter()方法的作用?

posted on 2022-05-07 12:19  Glovesize  阅读(29)  评论(0)    收藏  举报