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/owLM 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
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/owLM 著作权归作者所有。请勿转载和采集!