首页 › 答案 › 题库 › 网课

在Python中,哪个关键字用于定义一个生成器函数?

在Python中,哪个关键字用于定义一个生成器函数?
A、async
B、generate
C、return
D、yield
正确答案:yield