题解 | #牛牛的第二个整数#
牛牛的第二个整数
https://www.nowcoder.com/practice/6f3e10bcf63240a6b7bde95a22cb4cc4
const rl = require("readline").createInterface({ input: process.stdin }); var iter = rl[Symbol.asyncIterator](); const readline = async () => (await iter.next()).value; void async function () { // Write your code here while(line = await readline()){ // var line = line.spllice(" "); // console.log(line[1]); var numbers = line.split(" "); console.log(numbers[1]); } }()
将输入的一行数字字符串通过空格分割成一个数组,然后输出数组中的第二个整数。