2017-09-05 30 views

回答

2

exp**必須是expe**(在後一種情況下,from math import e)。 math.exp不是常數e的名稱,而是指數函數。

>>> exp(2) 
7.38905609893065 
>>> from math import e 
>>> e**2 
7.3890560989306495 
相關問題