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

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.

主站蜘蛛池模板: 泰顺县| 深泽县| 满洲里市| 梁山县| 广宁县| 天等县| 禄丰县| 林周县| 泸州市| 丰都县| 随州市| 云霄县| 外汇| 融水| 宣威市| 会同县| 苏尼特左旗| 巴马| 济南市| 奎屯市| 四会市| 香河县| 剑阁县| 上高县| 斗六市| 林芝县| 临江市| 谢通门县| 凤台县| 板桥市| 南康市| 黎平县| 红桥区| 屏山县| 礼泉县| 环江| 巍山| 巴楚县| 根河市| 上高县| 偃师市|