过滤器 1.Python 过滤器 nums = [1, 2, 4, -1, 0, -8,9] nums = filter(lambda x:x>0, nums) print(list(nums)) 2.rolling()函数