最赞回答 / imooclc
这句是在循环开始执行一次:int i = str.length() - 3; 相当于int i = str.length() - 3; for(; i > 0; i=i-3){ str.insert(i,','); }
2014-11-17