引例 计算n! n!=n×(n−1)! n!=n\times \left( n-1 \right) ! n!=n×(n−1)! int Fact(int n) { if(n>1) return n*(Fact(n-1)); else return 1; } 定义 调用自身的函数称为递归函数