public enum ChessType { White = 0, None=1, Black=2, } class Program { static void Main(string[] args) { ChessType[,] _data = new ChessType[15, 15]; for (int x = 0; x < 15; x++) { for (int y = 0; y < 15; y++) { Console.WriteLine(_data[x,y]); } } Console.ReadKey(); } }
得到的结果:输出的全部是White
时间: 2024-10-12 20:12:51