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

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.

主站蜘蛛池模板: 行唐县| 和政县| 奎屯市| 望谟县| 松原市| 汉川市| 温泉县| 疏勒县| 伊春市| 本溪市| 万年县| 阳东县| 青州市| 定襄县| 连云港市| 盐边县| 建湖县| 辉南县| 杭锦旗| 崇文区| 宜兴市| 广州市| 黑河市| 三原县| 济南市| 石景山区| 犍为县| 日照市| 贺兰县| 施秉县| 无为县| 德格县| 霞浦县| 灵寿县| 崇阳县| 伽师县| 锦州市| 九江市| 华宁县| 台东县| 依兰县|