bool check(string a,int i){ for(i=i+1;i<a.size();i++){ if(a[i]!='0')return false;//判断后面是不是都为0 } return true; }