static void Main(string[] args)
{
int[] arr = { 3, 9, 23, 5, 7, 3, 15, 19, 3 };
do {
list.Remove(3);
} while (list.Contains(3));
foreach (int i in list)
{
Console.Write(i + " ");
}
}
想法比较单纯,先记录下来,如有错误,请指正。