substr有2种用法:假设:string s = “012345”;
string sub1 = s.substr(2); //只有一个数字5表示从下标为5开始一直到结尾:sub1 = “2345”
string sub2 = s.substr(2, 2); //从下标为5开始截取长度为3位:sub2 = “23”