你可以用JAVA来
  
  String str=new StringBuffer(str).append(addstr).toString();  str 是你已经累加的字符串  addstr 是你现在加的  
  再用一个循环就可以了