3
6
x=int(input()) def ys(n): i=1 s=1 while i<=n: s=s*i i+=1 print(s) ys(x)
计算n的阶乘
原文:https://www.cnblogs.com/SkystarX/p/12180837.html