摘要: def parent(): t = son() print(type(t)) result = t.send(None) # 开始迭代 print(result) result = t.send(20) print(result) result = t.send(None) #引发StopIteration def son(): n... 阅读全文
posted @ 2018-03-06 09:53 我是外婆 阅读(261) 评论(0) 推荐(0) 编辑