n=eval(input()) num=1 if n>0: for i in range(1,n+1): num=i*num print("%d"%(num))
计算阶乘
原文:https://www.cnblogs.com/670ling/p/12589945.html