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

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.

主站蜘蛛池模板: 福州市| 正宁县| 黔江区| 同德县| 霍林郭勒市| 武夷山市| 疏勒县| 湖州市| 汨罗市| 衢州市| 大同市| 巴林左旗| 巢湖市| 莆田市| 五原县| 阜新市| 丘北县| 郯城县| 渭源县| 阳西县| 固镇县| 柏乡县| 韶关市| 高平市| 洛扎县| 正安县| 萝北县| 陇川县| 白山市| 利川市| 天津市| 长宁县| 庐江县| 乐平市| 贡嘎县| 开原市| 桐城市| 韶山市| 奇台县| 龙游县| 启东市|