單項(xiàng)選擇題

在Python 中,下列哪個(gè)關(guān)鍵字用于創(chuàng)建一個(gè)生成器函數(shù)?()

A.gen
B.yield
C.generator
D.return

微信掃碼免費(fèi)搜題