"循环体外创建string,内部用clear代替直接创建string"。Linear in the size of the string, although existing implementations operate in constant time. 感觉得看具体string的实现,如果clear是O(n)的话,其实和内部每次创建差不多。