✏️ 纠错
第 223 题 / 共 276 题
7、string的substr(2, 10) 在字符串长度不足时会抛出异常。( )
你真棒!
📝 题目解析
【答案】错误
【考纲知识点】字符串及其函数
【解析】当字符串长度不足时,不会抛出异常,会截取到最后一个字符。