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

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.

主站蜘蛛池模板: 三亚市| 迁西县| 房山区| 治县。| 得荣县| 金堂县| 清远市| 建始县| 新干县| 江山市| 黄梅县| 防城港市| 双峰县| 涟水县| 万全县| 庐江县| 屯留县| 安多县| 比如县| 会昌县| 民乐县| 鲁山县| 武山县| 钟祥市| 侯马市| 汉寿县| 洛南县| 涟源市| 米脂县| 靖宇县| 云阳县| 饶平县| 饶阳县| 太谷县| 河北省| 义马市| 湘乡市| 马山县| 云安县| 鄢陵县| 夹江县|