🌈 搜索
📅  最后修改于: 2022-03-11 14:46:02.458000             🧑  作者: Mango
def factorial(n): fact = 1 for num in range(2, n + 1): fact *= num return fact