📜  什么是类 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:08.006000             🧑  作者: Mango

代码示例1
A class is a block of code that holds various functions. Because they
are located inside a class they are named methods but mean the same
thing. In addition variables that are stored inside a class are named 
attributes. The point of a class is to call the class later allowing you 
to access as many functions or (methods) as you would like with the same
class name. These methods are grouped together under one class name due
to them working in association with eachother in some way.