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

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.

主站蜘蛛池模板: 新丰县| 梅州市| 曲靖市| 布尔津县| 天长市| 巴林左旗| 宿州市| 汕尾市| 大宁县| 手机| 蓬溪县| 桃江县| 永和县| 灵璧县| 南漳县| 麦盖提县| 民权县| 沁水县| 云阳县| 平泉县| 永康市| 定结县| 博白县| 彰化市| 即墨市| 唐海县| 项城市| 义马市| 红安县| 广安市| 萨嘎县| 防城港市| 社会| 阿巴嘎旗| 武威市| 通州区| 陵川县| 和龙市| 姜堰市| 上饶县| 包头市|