+ -
当前位置:首页 → 问答吧 → 在python中怎么利用自然对数e?

在python中怎么利用自然对数e?

时间:2011-02-21

来源:互联网

我的python出现以下情况:
>>> exp(1.0)

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    exp(1.0)
NameError: name 'exp' is not defined

作者: shengyajund   发布时间: 2011-02-21

from math import exp

作者: 3227049   发布时间: 2011-02-21

热门下载

更多