StringBuilder sb = new StringBuilder(10); sb.Append("Test"); sb.Length = 0; //这句清空 转载于:https://www.cnblogs.com/ybst/p/4464978.html