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

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.

主站蜘蛛池模板: 宁国市| 洛南县| 绥中县| 和硕县| 荔波县| 阳泉市| 南召县| 彭泽县| 永城市| 邢台县| 灌南县| 永济市| 高密市| 林芝县| 富川| 凌源市| 吴忠市| 汝城县| 顺昌县| 突泉县| 志丹县| 凤冈县| 九江市| 阿尔山市| 滨海县| 临泉县| 温州市| 抚松县| 龙南县| 灵武市| 莱阳市| 曲阳县| 临清市| 成武县| 高雄市| 南丰县| 阳东县| 唐海县| 浦北县| 逊克县| 栖霞市|