const str = readline(); const char = readline(); const getCharNum = (str, char) => { // 正则,灰常好用~ const matchReg = new RegExp(`${char}`, 'ig'); &nb...