摘要: def consumer(name): print('我是[%s],我准备开始吃包子了' %name) while True: baozi=yield time.sleep(1) print('%s 很开心的把【%s】吃掉了' %(name,baozi)) def producer(): c1=consumer('wupe... 阅读全文
posted @ 2017-01-04 16:32 打不死的--蟑螂 阅读(323) 评论(0) 推荐(0)