You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
825 B

class Admin:
adminU = '丑陋的妖怪' # 管理员的账号
adpwd = '1' # 管理员的密码
def printAdminView(self):
print("*** 欢迎登录银行系统 ***")
def printsysFunctionView(self):
print("1.开户(1)\n 2.查询(2) ")
print(" 3.取款(3)\n 4.存款(4) ")
print(" 5.转账(5)\n 6.锁定(6) \n7.解锁(7)\n退出(8)")
def adminOption(self):
adminInput = input("请输入管理员账户:")
if self.adminU != adminInput:
print("管理员账户输入错误......")
return -1
passwordInput = input("请输入密码:")
if self.adpwd != passwordInput:
print("输入密码有误......")
return -1
else:
print("操作成功,请稍后......")
return 0