📅  最后修改于: 2022-03-11 14:48:56.734000             🧑  作者: Mango
using System;
using System.Collections.Generic;
var vals = new List {-1, -3, 0, 1, 3, 2, 9, -4};
List filtered = vals.FindAll(e => e > 0);
Console.WriteLine(string.Join(',', filtered));