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

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.

主站蜘蛛池模板: 溆浦县| 扎鲁特旗| 玛多县| 罗甸县| 汽车| 福建省| 来安县| 临安市| 曲水县| 醴陵市| 邮箱| 澄迈县| 固原市| 扎赉特旗| 德兴市| 公安县| 石阡县| 长岛县| 英吉沙县| 红河县| 洪洞县| 西昌市| 闽侯县| 赤水市| 洪泽县| 山东省| 济阳县| 那坡县| 永丰县| 彭水| 庆云县| 手游| 洞头县| 浦北县| 鞍山市| 武邑县| 盈江县| 黔东| 奈曼旗| 泽州县| 吉隆县|