2017年12月13日

python基础知识之生成器和列表生成器与迭代器

摘要: '''**********yield的方式实现并行代码实例**************** __author__ = "Alex Li"import timedef consumer(name): print("%s 准备吃包子啦!" %name) while True: baozi = yield 阅读全文

posted @ 2017-12-13 15:26 机壳啦 阅读(139) 评论(0) 推荐(0) 编辑

导航