// 统计字符串中字符出现的频率 function countCharacters(text) { const charCount = {}; for (const char of text) { if (/[a-zA-Z0-9]/.test(char)) { const lowerChar = char.toLowerCase();