using System;
namespace test
{
class Program
{
static void Main(string[] args)
{
for (int i = 1; i <= 255; i++) {
char c = (char)i;//通过强制类型转换来将ASCII码对应的字符数出
Console.WriteLine(i + " " + c);
}
}
}
}
//不过由于有不可打印符号,打印不会按预期结果出现
C#中输出ASCII字符表
最新推荐文章于 2024-05-16 06:10:17 发布