设string s="qweass"; string q=s.substr(3); 截取下标为3以后的所有的字符;即 q="ass"; string w=s.substr(2,4); 截取下标为2到4的字符; 即 w="eas";