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