'''
def student_add():
#pass
print("p")
def student_delete():
#pass
print("b")
#1.声明类
class Student(object):
# 类属性
class_name = "34期"
num = "30人"
# 方法
def listen(self):
print("听课")
def homework(self):
print("写作业")
#2.实例化对象 : 类名()
s1 = Student()
s2 = Student()
print(id(s1),id(s2)) # 1947621752784 1947621752592
#3.对象通过句点符号调用属性和方法
print(s1.class_name) # 32期
print(s1.num) # 30人
s1.listen() # 听课
s1.homework() # 写作业
#4.设置实例属性
s1.name = "zhubiao"
s1.age = 31
# 实例对象.变量的查询顺序
print(s1.name) # zhubiao
print(s1.class_name) # 34期
#5.结论:类属性只能查不能改
s1.clsas_name = "33期"
print(s1.clsas_name) # 33期
# 类属性修改
Student.clsas_name = "34期"
print(s1.clsas_name) # 33期
print(s2.clsas_name) # 34期
'''