diff --git a/banksystem/__pycache__/admin.cpython-38.pyc b/banksystem/__pycache__/admin.cpython-38.pyc index e7a93a8..a8e356a 100644 Binary files a/banksystem/__pycache__/admin.cpython-38.pyc and b/banksystem/__pycache__/admin.cpython-38.pyc differ diff --git a/banksystem/__pycache__/atm.cpython-38.pyc b/banksystem/__pycache__/atm.cpython-38.pyc index d67eef4..0ea6794 100644 Binary files a/banksystem/__pycache__/atm.cpython-38.pyc and b/banksystem/__pycache__/atm.cpython-38.pyc differ diff --git a/banksystem/__pycache__/card.cpython-38.pyc b/banksystem/__pycache__/card.cpython-38.pyc index 60cf904..d77061e 100644 Binary files a/banksystem/__pycache__/card.cpython-38.pyc and b/banksystem/__pycache__/card.cpython-38.pyc differ diff --git a/banksystem/__pycache__/check.cpython-38.pyc b/banksystem/__pycache__/check.cpython-38.pyc index 5920825..dcf99b6 100644 Binary files a/banksystem/__pycache__/check.cpython-38.pyc and b/banksystem/__pycache__/check.cpython-38.pyc differ diff --git a/banksystem/__pycache__/readAppendCard.cpython-38.pyc b/banksystem/__pycache__/readAppendCard.cpython-38.pyc index 6fa00e3..a84c9fb 100644 Binary files a/banksystem/__pycache__/readAppendCard.cpython-38.pyc and b/banksystem/__pycache__/readAppendCard.cpython-38.pyc differ diff --git a/banksystem/admin.py b/banksystem/admin.py index 2aae116..1d8e302 100644 --- a/banksystem/admin.py +++ b/banksystem/admin.py @@ -1,10 +1,5 @@ ''' -管理员界面 -类名:View -属性:账号,密码 -行为:管理员界面 管理员登陆 系统功能界面 管理员注销 - -系统功能:开户 查询 取款 存储 转账 改密 销户 退出 +包含管理员的一些界面 包括登陆界面,功能界面等 ''' import check from check import Check diff --git a/banksystem/atm.py b/banksystem/atm.py index 14b463b..23071b3 100644 --- a/banksystem/atm.py +++ b/banksystem/atm.py @@ -1,8 +1,6 @@ ''' 提款机: -类名:ATM -属性: -行为:开户,查询,取款,存储,转账,销户,挂失,解锁,改密,退出 +包含功能包括开户,查询,取款,存储,转账,销户,挂失,解锁,改密,退出 ''' import check from check import Check @@ -174,7 +172,7 @@ class ATM(object): # 写入文件 def writeCard(self): - self.appendCard.append('', w='w') + self.appendCard.append('', mode='w') for card in self.cards: self.appendCard.append(card) diff --git a/banksystem/card.py b/banksystem/card.py index 87416a5..950f61f 100644 --- a/banksystem/card.py +++ b/banksystem/card.py @@ -1,7 +1,5 @@ ''' -卡: -类名:Card -属性:卡号【7位随机】 密码 余额 绑定的身份证号 手机号 +Card,包含属性包括卡号,卡密,剩余钱,身份证,手机号码,卡是否被上锁 ''' diff --git a/banksystem/cardinfo.txt b/banksystem/cardinfo.txt index e69de29..7c53d41 100644 --- a/banksystem/cardinfo.txt +++ b/banksystem/cardinfo.txt @@ -0,0 +1,3 @@ +{"cardN": "510146", "cardPassword": "000000", "cardMoney": 0, "identityId": "370105", "phoneNum": "19580768517", "cardLock": "False"} +{"cardN": "507229", "cardPassword": "000000", "cardMoney": 0, "identityId": "370105", "phoneNum": "15564160506", "cardLock": "False"} +{"cardN": "5488800", "cardPassword": "000000", "cardMoney": 0, "identityId": "370102", "phoneNum": "13278888439", "cardLock": "False"} diff --git a/banksystem/check.py b/banksystem/check.py index 18cf3b2..6996d0d 100644 --- a/banksystem/check.py +++ b/banksystem/check.py @@ -1,7 +1,5 @@ ''' -验证类: -用户名、密码、卡号、身份证、手机号验证 -输入确认 +包含了用于验证各种选项的函数 ''' @@ -121,11 +119,6 @@ class Check(object): # 用户验证 def userName(self, admin, password): - """ - :param admin: 用户名 - :param password: 密码 - :return: - """ self.admin = admin self.password = password adminFlag = False diff --git a/banksystem/readAppendCard.py b/banksystem/readAppendCard.py index 65702da..4b9c87b 100644 --- a/banksystem/readAppendCard.py +++ b/banksystem/readAppendCard.py @@ -30,9 +30,8 @@ class AppendCard(Card): "phoneNum": card.phoneNum, "cardLock": card.cardLock } - def append(self, card, w='a'): - # 清除 - if w == 'w': + def append(self, card, mode='a'): + if mode == 'w': with open("cardinfo.txt", "w", encoding="utf-8") as fa: fa.write('') else: @@ -58,7 +57,7 @@ class Del(object): return False appendcard = AppendCard() - appendcard.append('', w='w') + appendcard.append('', mode='w') for card in cards: appendcard.append(card) return True