for (int i = 0; i < 256; i++) { Console.WriteLine("{0}<-->{1}", i, (char)i); }
char c = 'a'; while (c <= 'z') { Console.WriteLine("{0}的ASCII码是:{1}", c, (int)c); c++; }