c#提取
string email = Console.ReadLine(); int atIndex = email.IndexOf('@'); string userName = email.Substring(0, atIndex); string domainName = email.Substring(atIndex + 1); Console.WriteLine(userName); Console.WriteLine(domainName); Console.ReadKey();