前段时间有人问我list的最大长度是多少?当时我一脸懵逼的状态,还有大小限制呢,一直都是直接用的,所以特地查了下:
list:
32位python的限制是 536870912 个元素
64位python的限制是 1152921504606846975 个元素
前段时间有人问我list的最大长度是多少?当时我一脸懵逼的状态,还有大小限制呢,一直都是直接用的,所以特地查了下:
list:
32位python的限制是 536870912 个元素
64位python的限制是 1152921504606846975 个元素
转载于:https://www.cnblogs.com/huwang-sun/p/9426264.html