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

Modules for data structures and algorithms

In addition to the built-in types, there are several Python modules that we can use to extend these built-in types and functions. In many cases, these Python modules may offer efficiency and programming advantages that allow us to simplify our code.

So far, we have looked at the built-in datatypes of strings, lists, sets, and dictionaries as well as the decimal and fractions modules. They are often described by the term abstract data types (ADTs). ADTs can be considered as mathematical specifications for the set of operations that can be performed on data. They are defined by their behavior rather than their implementation. In addition to the ADTs that we have looked at, there are several Python libraries that provide extensions to the built-in datatypes. These will be discussed in the following section.

主站蜘蛛池模板: 玛多县| 随州市| 无为县| 德阳市| 汉川市| 巴林右旗| 海淀区| 合作市| 什邡市| 兴化市| 西贡区| 安溪县| 洪雅县| 桐庐县| 清新县| 高淳县| 合川市| 麻阳| 郯城县| 凌海市| 南城县| 广河县| 河津市| 瑞安市| 寻乌县| 边坝县| 石台县| 普安县| 关岭| 绩溪县| 株洲县| 武胜县| 沅江市| 荣成市| 岳西县| 饶河县| 鹤岗市| 张北县| 江华| 融水| 长沙县|