2017-06-17 94 views

回答

1

你忘了return語句。

def factorial(gamma, m): 
    prod = 1 
    for i in range(m): 
     prod *= (1-gamma-i) 
    return prod 

1 - γ= X

factorial(-4, 1) = 120