统计多少个汉字与字母
private int CountWords(string text)
{
var count = Regex.Matches(text, @"[\u4e00-\u9fa5]|[a-zA-X]+").Count;
return 30 + count;
}
private int CountWords(string text)
{
var count = Regex.Matches(text, @"[\u4e00-\u9fa5]|[a-zA-X]+").Count;
return 30 + count;
}