在python里面,数学上那个 e=2.718 math库里面有定义吗?
如题
[解决办法]
>>> from math import e
>>> e
2.718281828459045
>>>
[解决办法]
也可以这样:
Python 3.2.3 (default, Apr 11 2012, 07:15:24) [MSC v.1500 32 bit (Intel)] on win32Type "copyright", "credits" or "license()" for more information.>>> import math>>> math.e2.718281828459045>>>