random.sample(range(2**31 - 1), random.randrage(1, 100))结果是:Traceback (most recent call last): File "<stdin>", line 1, in <module>MemoryError我正在具有6GB RAM的ubuntu 12.04 64位上运行python 2.7.3。我认为2 ** 31 -1是32位计算机中整数的正常上限。我仍然比那还低1,并且遇到内存错误?
添加回答
举报
0/150
提交
取消
