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

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.

主站蜘蛛池模板: 涿州市| 广丰县| 新兴县| 阜城县| 芷江| 揭阳市| 青岛市| 清徐县| 凤冈县| 梁平县| 濉溪县| 昂仁县| 建德市| 永和县| 大荔县| 舞钢市| 桦南县| 聊城市| 久治县| 金沙县| 全椒县| 蕉岭县| 和政县| 正镶白旗| 冷水江市| 河曲县| 盐城市| 东乡| 蓝山县| 全州县| 扬州市| 额济纳旗| 阜宁县| 宁安市| 宁武县| 喀喇| 息烽县| 镇远县| 封开县| 绵竹市| 罗源县|