public string a=""; public void show(string value){ a=a+value;//这里会发现每次进来时a都会”“空的。 } //解决办法,将a声明成静态的 public static string a="";