递归就是方法里面用方法 例: 再在main方法里面调用即可: Class1 c = new Class1(); Console.WriteLine(c.fun(4)); 输出结果:24 看不懂的可以打开断点调试下