作业 请用匿名函数改造下面的代码: def is_odd(n): return n % 2 == 1 L = list(filter(is_odd, range(1, 20))) 方法1: list(filter(lambda x:x%2==1, range(20))) #filter函数用来过滤掉不满足条件的数,转成list输出 Out: [1, 3, 5, 7, 9, 11, 13, 15, 17, 19]