读书人

在python里面数学上那个 e=2.718 m

发布时间: 2012-04-25 19:32:32 作者: rapoo

在python里面,数学上那个 e=2.718 math库里面有定义吗?
如题

[解决办法]
>>> from math import e
>>> e
2.718281828459045
>>>
[解决办法]
也可以这样:

Python code
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>>> 

读书人网 >perl python

热点推荐