题解 | #截取字符串#
截取字符串
http://www.nowcoder.com/practice/a30bbc1a0aca4c27b86dd88868de4a4a
const line=readline();
const len=parseInt(readline());
const res=line.slice(0,len);
console.log(res)
截取字符串
http://www.nowcoder.com/practice/a30bbc1a0aca4c27b86dd88868de4a4a
const line=readline();
const len=parseInt(readline());
const res=line.slice(0,len);
console.log(res)
相关推荐