保存当前运行状态,然后暂停执行,即将函数挂起。yield关键字后面表达式的值作为返回值返回。当使用next(),send()函数从断点处继续执行。 转载于:https://www.cnblogs.com/sea-stream/p/11192522.html