类(class)和实例(instance)
class Student(object)
Student为类的名称,object为继承的属性
bart = Student()
bart指向了student的实例
bart.name = 'bill'
给实例bart绑定了一个name的属性
类(class)和实例(instance)
class Student(object)
Student为类的名称,object为继承的属性
bart = Student()
bart指向了student的实例
bart.name = 'bill'
给实例bart绑定了一个name的属性