python-生成器,filter的理解

代碼1: html def nums(): i = 3 yield i while True: i = i + 2 yield i def isNot(n): return lambda x : x % n > 0 def prime(): yield 2 L = nums() while True
相關文章
相關標籤/搜索