使用
import math
math.factorial()
即可
()內可直接放未知數
如
math.factorial(x)
而
math.factorial(3)=6
math.factorial(5)=120
以此類推。