From d65629ebe69c31cfde10d97924921404af0ec78e Mon Sep 17 00:00:00 2001 From: pmbx5c4sj <1423888965@qq.com> Date: Mon, 3 Jun 2024 11:29:53 +0800 Subject: [PATCH] ADD file via upload --- admin.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 admin.py diff --git a/admin.py b/admin.py new file mode 100644 index 0000000..99f83a4 --- /dev/null +++ b/admin.py @@ -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