参考https://blog.csdn.net/qq_33726635/article/details/106649623
C++的substr第二个参数表示长度
java的substr的第二个参数表示end下标