通过定义函数,计算n的阶乘。阶乘公式为:n!=n*(n_1)(n_2)...*1
def jc(n): if n==1: return 1 return n*jc(n-1) n = int(input()) print(jc(n))