String.substring(from,to)索引位置包含from,不包含to

northli / 2023-08-02 / 原文

String.substring(from,to)

子字符串包含from,不包含to,比如str.substring(0,str.length())