def is_odd(n): return n % 2 == 1#替换匿名函数L = list(filter(lambda n: n % 2 == 1, range(1, 10)))print(L)
Sign in to make a reply
一库大神