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

Summary

In this chapter, we learned how simple it is to create classes and assign properties and methods in Python. Unlike many languages, Python differentiates between a constructor and an initializer. It has a relaxed attitude toward access control. There are many different levels of scope, including packages, modules, classes, and functions. We understood the difference between relative and absolute imports, and how to manage third-party packages that don't come with Python.

In the next chapter, we'll learn how to share implementation using inheritance.

主站蜘蛛池模板: 芦溪县| 太原市| 大化| 广州市| 垦利县| 左权县| 道真| 石柱| 蕉岭县| 四子王旗| 凉山| 通山县| 丰镇市| 高雄市| 泰来县| 祥云县| 凤阳县| 江孜县| 沁源县| 紫金县| 大埔区| 松阳县| 南乐县| 府谷县| 陵川县| 大安市| 恩施市| 丹巴县| 靖边县| 宁津县| 双桥区| 定西市| 通州区| 响水县| 枣庄市| 章丘市| 全州县| 双峰县| 揭西县| 泰顺县| 安远县|