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