1、类和实例
类是抽象的模板
例是根据类创建出来的一个个具体的“对象”
例:
class Student(object):
bart = Student()bart
<main.Student object at 0x10a67a590> # 0x10a67a590是个内存地址
Student
<class ‘main.Student’>
bart是个变量
student()是个实例
student是个类
2、type & rtype
type: Type of a parameter.
vartype: Type of a variable.
rtype: Return type. (函数返回的数据的类型)