2

在 Python 中,以下代码

from math import factorial
print factorial(40)/(factorial(20)*factorial(20))

打印出 136772786996。

WolframAlpha 说答案是错误的;它应该是137846528820。这里有什么问题,我该如何解决?

4

1 回答 1

3

对我来说很好用:

>>> from math import factorial
>>> print factorial(40)/(factorial(20)*factorial(20))
137846528820
于 2012-03-04T21:03:44.290 回答