const input = readline(); if (input) { const o_arr = input.split(';'); const direction = ['A', 'S', 'D', 'W']; const o = { x: 0, y: 0, }; // 原点 o_arr.forEach(item => { const sub1 = item.substr(0, 1); const sub2 = item.substr(1, item.length); const isNumber = typeof(Number(sub2)) === 'number' &...