Python 函数实现阶乘计算
def f(x): s = 1 for i in range(1, x+1): s *= i return s
n = int(input())
print(f(n))
原文地址: https://www.cveoy.top/t/topic/owLL 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
def f(x): s = 1 for i in range(1, x+1): s *= i return s
n = int(input())
print(f(n))
原文地址: https://www.cveoy.top/t/topic/owLL 著作权归作者所有。请勿转载和采集!