n = int(input("请输入求阶乘的数\n")) sum = 1 for i in range(1,n+1): sum = sum * i print(sum)
求阶乘
原文:https://www.cnblogs.com/3045qqq/p/15260352.html