我使用random.uniform(1,2**100)
来产生范围为(0,2**100)
的随机浮标。一些结果如下:后缀e +数字在python中的含义是什么?
>>> random.uniform(1,2**100)
5.9798650563331964e+29
>>> random.uniform(1,2**100)
8.439133849811236e+29
>>> random.uniform(1,2**100)
1.1367823572756921e+30
>>> random.uniform(1,2**100)
6.467828850316163e+29
>>> random.uniform(1,2**100)
6.114089228136624e+29
>>> random.uniform(1,2**100)
5.8262139039159224e+29
我无法在每个数字的末尾获得对e+29
的解释。
这是一个非常**很大的数字。 '1.23e + 45'表示'1.23 * 10 ** 45'或'123xxx',其中'xxx'为43个零。 – eumiro 2013-02-28 14:57:07