parent
6ea79735bd
commit
d65629ebe6
@ -0,0 +1,21 @@
|
|||||||
|
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
|
Loading…
Reference in new issue