牛客网js node 输入模板
作者:互联网
牛客网js node 输入模板
let readline = require('readline')
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
})
let inputTime = 1
let inputArray = []
rl.on('line', line => {
inputArray.push(line)
if (inputTime === 2) {
// coding here
console.log(inputArray)
} else {
inputTime++
}
})
标签:node,process,inputArray,inputTime,js,牛客,let,line,readline 来源: https://blog.csdn.net/weixin_45629209/article/details/114956564