#代码Console.WriteLine("输入用户名"); string name = Console.ReadLine(); Console.WriteLine("输入密码"); string mima = Console.ReadLine(); int mi = Convert.ToInt32(mima); if (name == "admin" && mi == 88888) { Console.WriteLine("输入正确"); } else if (name != "admin") { Console.WriteLine("检查用户名是否存在"); } else { Console.WriteLine("密码错误"); Console.ReadKey();#效果 图片发自简书App