示例1 def consumer(name): print("{}准备吃包子!".format(name)) while True: baozi = yield print('包子[{}]来了,被[{}]吃了'.format(baozi,name)) c = consumer('chenronghua') c.__next__() b1 = '韭菜馅' c