单项选择题

A.def func():yield x
B.function*func(){yield x;}
C.generator func(){yield x;}
D.func =generator(x for x in range(10))