学习笔记(10):第二章 程序设计与数据结构-Python的魔法功能,魅力之所在,让代码量更少 1...

    技术2023-12-02  96

    立即学习:https://edu.csdn.net/course/play/25504/304703?utm_source=blogtoedu

    生成器:

    g=(for in)

    next() print(next(g))

     

    将下面的print b改为 yield

    相关资源:微信小程序源码-合集6.rar
    Processed: 0.018, SQL: 9