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