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

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.

主站蜘蛛池模板: 于田县| 潮安县| 绥滨县| 黄平县| 安西县| 合作市| 安达市| 金华市| 太仆寺旗| 延吉市| 娱乐| 永福县| 青河县| 垫江县| 铜陵市| 丰顺县| 河北省| 黄冈市| 西乌珠穆沁旗| 临洮县| 文登市| 镇原县| 武威市| 丰镇市| 台江县| 通榆县| 漳平市| 文安县| 饶河县| 土默特右旗| 武宁县| 庐江县| 友谊县| 嫩江县| 札达县| 天等县| 临高县| 洮南市| 阿克苏市| 剑阁县| 平度市|