怎样定义一个函数,使其输入数列后输出含该数列中所有正数的数列?
def func(l): return [temp for temp in l if temp>0] print(func([1, -1]))