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

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.

主站蜘蛛池模板: 五常市| 双柏县| 辰溪县| 德昌县| 翁源县| 九台市| 望都县| 靖安县| 平塘县| 上杭县| 临沭县| 靖安县| 高州市| 滦南县| 苏尼特右旗| 公主岭市| 揭东县| 韶关市| 通化县| 舟山市| 任丘市| 汉川市| 浠水县| 石首市| 余姚市| 泸西县| 柘城县| 连江县| 栾城县| 若尔盖县| 垦利县| 鞍山市| 堆龙德庆县| 邻水| 日照市| 通道| 宝丰县| 张家口市| 同心县| 宁都县| 海阳市|