def _not_divisible(n): return lambda x: x % n > 0 def primes(): yield 2 it = _odd_iter() # 初始序列 while True: n = next(it) # 返回序列的第一个数 yield n it = filter(_not_divisible(n), it) # 构造新序列
_not_divisible(n)函数只接收了n,x的值又是怎么传入的
Sign in to make a reply
爱吃的小鹭鹭
_not_divisible(n)函数只接收了n,x的值又是怎么传入的