const rl = require('readline').createInterface({input: process.stdin}) const iter = rl[Symbol.asyncIterator]() const readline = async () => (await iter.next()).value void async function () { const lines = await readline() const reg = /^[A-Za-z0-9]+$/ if (reg.test(lines) && lines.length >= 1 && lines.length <= 10000) { console.log(lines); } else { console.log('输入不符合要求'); } rl.close() }()