判断字符串各个字符类型: 主要通过if–else语句进行判断。 static void Main(string[] args) { //判断字符串各个字符类型 Console.WriteLine("请输入一个字符串:"); string a