两个用法:. string str.substr(pos) //默认从str字符串pos位置开始截取到str结束为止. string str.substr(pos, n) // 若pos的值超过了string的大小,则substr函数会抛 ...
確定! 回上一頁