2018年8月4日
摘要: 1 import time 2 def consumer (name): 3 print("%s要开始吃包子啦"%name) 4 while True: 5 baozi = yield 6 print("包子[%s]来了,被[%s]吃了!" % (baozi, name)) 7 8 # a = consumer("Alex") ... 阅读全文
posted @ 2018-08-04 19:34 二十二a 阅读(120) 评论(0) 推荐(0) 编辑