课程: Python: Advanced Design Patterns (2018)
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Python as an object-oriented programming (OOP) language - Python教程
课程: Python: Advanced Design Patterns (2018)
Python as an object-oriented programming (OOP) language
- [Instructor] There are two major approaches to organize your program code. Building related statements into a unit called a function that accomplishes a particular task is referred to as procedural programming. This task could range from reading data from a file to keeping track of a transaction at a point of sale. On the other hand, object-oriented programming uses objects as its way of structuring the code. You can define these objects in terms of their properties and behaviors. It is perfectly fine to follow the procedural way of programming in Python, but it may not be wise because Python was designed to be an object-oriented programming language and can offer so much more when you treat it the way it should be handled. In fact, design patterns assume the use of the object-oriented programming style. Therefore, you have no choice if you want to use design patterns in your code. What makes Python an object-oriented programming language? There is a straightforward answer to this…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。