官术网_书友最值得收藏!

Arrays

An array is a sequential list of data. Being sequential means that each element is stored right after the previous one in memory. If your array is really big and you are low on memory, it could be impossible to find large enough storage to fit your entire array. This will lead to problems.

Of course, the flip side of the coin is that arrays are very fast. Since each element follows from the previous one in memory, there is no need to jump around between different memory locations. This can be a very important point to take into consideration when choosing between a list and an array in your own real-world applications.

In the latter parts of Chapter 2, Python Data Types and Structures, we looked at the array data type and discovered the various operations that could be performed on it.

主站蜘蛛池模板: 文水县| 淳安县| 文登市| 青海省| 阳曲县| 六枝特区| 邢台市| 北辰区| 屯门区| 榆中县| 武安市| 略阳县| 都兰县| 美姑县| 南靖县| 宿州市| 离岛区| 贵阳市| 吴桥县| 邹平县| 肃宁县| 连江县| 于田县| 天峨县| 莫力| 渝中区| 汤原县| 新和县| 青龙| 定兴县| 东至县| 荣成市| 玉龙| 晋州市| 米泉市| 澄江县| 奇台县| 永泰县| 白山市| 原阳县| 剑阁县|