C#foreach的用法时间:2023-03-09 19:27:26 static void Main(string[] args) { int[] a = new int[5] { 1, 2, 3, 4, 5 }; foreach(int b in a); Console.WriteLine(b); Console.ReadLine(); }