#私有化之类的封装
#定义类
class ICka:
#定义属性
def __init__(self,user,password,yuer):
self.user=user
self.password=password
self.yuer=yuer
#定义方法
def cunqian(self):
print('存钱')
def daikuan(self):
print('贷款')
#判断
def panduan(self,user,password): #定义一个函数并写出条件
if self.user==user and self.password==password: #如果条件成立执行以下条件:
return self.yuer #返回yuer
#创建对象
bian=ICka('tianwu',20050212,5555)
panduan=bian.panduan('tianwu',20050212,) #这



