private int CountWords(string text)
{
var count = Regex.Matches(text, @"[\u4e00-\u9fa5]|[a-zA-X]+").Count;
return 30 + count;
}
时间: 2024-12-16 15:27:04
private int CountWords(string text)
{
var count = Regex.Matches(text, @"[\u4e00-\u9fa5]|[a-zA-X]+").Count;
return 30 + count;
}