数据结构 - Python 中 list 的内存增长模型问题
伊谢尔伦
伊谢尔伦 2017-04-17 13:33:49
0
1
339

python中list的所占用的内存 增长是按照这个顺序:

0, 4, 8, 16, 25, 35, 46, 58, 72, 88

这其中有什么规律,为什么是这样子的?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(1)
小葫芦

This is the python memory size adjustment algorithm,
Detailed answers can be found here http://www.jianshu.com/p/J4U6rR,
You can also take a look at http://www.zhihu.com/question/21269009

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!