The python function, object-oriented

To learn python function that a progress has slowed down, mainly want to understand thoroughly, after all, is a function of intuition told me that python is the key, whether it is a module, or package, or libraries, are based on a number of functions defined above .

 

A later chapter is about object-oriented programming, are content design principles. Talk about personal current understanding (later will be amended), it is easy to understand object-oriented, specifically refers to the python in a specific value, function, string, etc., the basic properties of the object that is the "property + method", vernacular talk is have data and code. Object is the basic unit of the program, but also forms the basis.

As for classes, personal understanding at present still a little shallow, personally think that is somewhat similar to a custom class module, defined by class category, while statements or programmed by def def __init __ (). The final result is formed from import can be introduced into or through. But it feels a little shallow understanding, deepen during the later learning process.

 

Guess you like

Origin www.cnblogs.com/flyingcow/p/11332182.html