110,534
社区成员
发帖
与我相关
我的任务
分享
char.IsLetter(c);
char.IsLetterOrDigit(ch)//还有这一个,判断是否字母或数字
string str = Console.ReadLine();
Regex r = new Regex(@"^[A-Za-z]{1}$");
if (r.Match(str).Success)
Console.WriteLine("该字符是英文字母!");
else { Console.WriteLine("不是英文字母!"); }
char ch='A';
bool flag=char.IsLetter(ch);