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

  • 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.

主站蜘蛛池模板: 阳高县| 丹凤县| 宁陵县| 华蓥市| 米林县| 望江县| 滕州市| 镇赉县| 常宁市| 崇阳县| 顺昌县| 石楼县| 和田县| 都兰县| 博兴县| 闸北区| 凌云县| 舞钢市| 富源县| 平武县| 慈溪市| 长寿区| 茂名市| 新源县| 木里| 广德县| 隆昌县| 黔西| 嘉善县| 云安县| 县级市| 奎屯市| 阿合奇县| 博湖县| 靖州| 沿河| 田阳县| 礼泉县| 望城县| 湖南省| 萝北县|