我可能没理解对这些代码的意思。。
我的问题其实就是这句话是什么意思:
If __next__() is used (typically via either a for or the next() builtin) then the result is None.
【 在 kkito (氢氧化钙) 的大作中提到: 】
: 你这问题似乎不对
: 第一次next的是1
: 第二次才是 None
: 为啥第二次是None ,因为 `value = yield value` , 在循环里被赋值了
--
FROM 182.102.145.*