substring的起始为左闭右开区间,也就是[1,3)结束位置为2,千万不要搞错了哦。
其他关于这个点的资料如下:https://www.cnblogs.com/owenandhisfriends/p/6892292.html