Classes
摘要
Python is an object-oriented programming (OOP) language. Object oriented programming languageWhile procedure-oriented programming (POP) languages are mainly based on variables and functions, OOP languages add, and stress, objects. Often objects correspond to things found in the real world: a graphics program may have objects such as “circle” or “square”, a physics program may have objects such as “electron” or “nucleus”.