Console.WriteLine("请输入邮箱地址:");
string str1 = Console.ReadLine();
String[] str2 = str1.Split(new char[] { '@' });
//第一种(全部输出)
//for (int i = 0; i < str2.Length; i++)
//{
// Console.WriteLine(str2[i]);
//}
//第二种
Console.WriteLine("域名" + str2[0]);
Console.WriteLine("用户名" + "@" + str2[1]);