输入输出

const readline = require('readline')
const rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout
})
let inputArr = []
rl.on('line', function(input) {
  inputArr.push(input)
})
rl.on('close', function() {

})

你可能感兴趣的:(输入输出)