统计list中满足条件的数的个数 要求:统计list weights['value']中满足条件的数的个数:>=0、<0的个数分别是多少解决方法:np.sum(list(map(lambda x: x >= 0, weights['value']))) Other 2023-11-14 201 点赞 3 评论 304 浏览