标签:isp lis pytho spl none number int col lambda
number_list = range(-5, 5) less_than_zero = list(filter(lambda x: x < 0, number_list)) print(less_than_zero)
输出:
[-5, -4, -3, -2, -1]
标签:isp lis pytho spl none number int col lambda
原文地址:https://www.cnblogs.com/sea-stream/p/9941741.html