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

  • Mastering Python
  • Rick van Hattem
  • 156字
  • 2021-07-16 11:10:33

Summary

Python has quite a few very useful collections built in. Since more and more collections are added regularly, the best thing to do is simply keep track of the collections manual. And do you ever wonder how or why any of the structures works? Just look at the source here:

https://hg.python.org/cpython/file/default/Lib/collections/__init__.py

After finishing this chapter, you should be aware of both the core collections and the most important collections from the collections module, but more importantly the performance characteristics of these collections in several scenarios. Selecting the correct data structure within your applications is by far the most important performance factor that your code will ever experience, making this essential knowledge for any programmer.

Next, we will continue with functional programming which covers lambda functions, list comprehensions, dict comprehensions, set comprehensions and an array of related topics. This includes some background information on the mathematics involved which could be interesting but can safely be skipped.

主站蜘蛛池模板: 兰溪市| 达孜县| 嘉定区| 肥东县| 应用必备| 渭南市| 崇阳县| 文水县| 临武县| 岚皋县| 武隆县| 东丽区| 廉江市| 乃东县| 土默特右旗| 马边| 鞍山市| 阳新县| 什邡市| 普安县| 双城市| 三门县| 牡丹江市| 天台县| 栾城县| 广汉市| 谷城县| 永修县| 金秀| 偏关县| 藁城市| 垫江县| 蒙阴县| 宁城县| 民勤县| 无为县| 吴桥县| 弥渡县| 奉新县| 绥滨县| 盘山县|