From b0269c9dfe32bb10a55f5716a3a8af72e32c1d61 Mon Sep 17 00:00:00 2001 From: Hhhhzh <969247577@qq.com> Date: Thu, 16 Feb 2023 15:05:45 +0800 Subject: [PATCH] some change --- banksystem/__pycache__/admin.cpython-38.pyc | Bin 3899 -> 3596 bytes banksystem/__pycache__/atm.cpython-38.pyc | Bin 5193 -> 4995 bytes banksystem/__pycache__/card.cpython-38.pyc | Bin 702 -> 728 bytes banksystem/__pycache__/check.cpython-38.pyc | Bin 3945 -> 3347 bytes .../__pycache__/readAppendCard.cpython-38.pyc | Bin 2824 -> 2543 bytes banksystem/admin.py | 7 +------ banksystem/atm.py | 6 ++---- banksystem/card.py | 4 +--- banksystem/cardinfo.txt | 3 +++ banksystem/check.py | 9 +-------- banksystem/readAppendCard.py | 7 +++---- 11 files changed, 11 insertions(+), 25 deletions(-) diff --git a/banksystem/__pycache__/admin.cpython-38.pyc b/banksystem/__pycache__/admin.cpython-38.pyc index e7a93a8336d55b76db8e9dd1f1ff26480418e0f1..a8e356a13aeb7760c103adf436154f2f0c70427a 100644 GIT binary patch delta 474 zcmdlj*CWFh%FD~e00dW0y-hCWpU5XuZv*6|Fhnt=Fs3l&Fh(%~Y33ZpT&5@{Mu-@5 z6f;~fRixY)t$ayC^k{gF*(@&z_d zW-XxnN1zyp)?KD} zk!iCY=W!-!L7;*VO^zaNAYH@+B%;_di-SvxQj3Hp3-E~RXfhYEfkl%+{wpaG2B~9* z6C6O+Ew-He^!(BiplB4ZY%iFgo-B0Va25uwx{*rVBi#a1MtSZW}t)hIU7 zgsIY2G`3)^P%R~e+9vfP;@y)9p6p~dpycM+nO&{Hh56pR?|tuk`=-!SJ=k{9G_l0L zv0p54qodT;lkMY~BiWJzjywz_vMqzSE5nMd_))ddS;PH+T4eRga$_ckajS@rWVKxV{stlS z@(XWukq|chxW4j^$Jev$_A(*f_KLUOyTk=EoBXc`_wei zoiBaZgmW|tXXqE`g7(S}n3AEJj;WvI{y05uoKoZC{TVue_R=CUS`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7qvL{%j>#@q@^s%?wF9 z83kshD@nN;$cSMxEj@4`v?&hSn`W*x+p6-PTI0;HyqPEjuYU zPVE`i3B_?t;c-B>u}O67ko7RP4m;u%XQX=sTp<}a$1){FW6aayM`vHRBCfk~-u%Pm zsTuA8kA`A*CEL*H_{x!aNy1B#0lcWic5ZuqZFmXRa!TX|gqUZj!z76Ky7grL4@%5lJ_mBa1d0hOR=-;l6{tme=wsvtt_ht*hhhV5m zKLli$>>R`iak_K(k$-WNCa*c_e;F^v&1M z914I_i=?iOi`-;x!Qzyr+;}(We50Je4Gq3AZRIueQm)`%276Tpfv}1B1ia;UNLsSl zl-sbfSys+xvs@KRz}&o0H6(hvc8yDaJ}Sk3l+>Ujr81i-dJn-()8vqDI&e;{_GEAG%US);=InahFi}B4;pzIe=L;Hvj3;|%zFag{LE-uCiBH$f zdOoY=#je#)cJF<$z7eQV;aO)lPz#X7l?<{L888Dm4iit7u(Krtt@KQp?97S`5Z`fOVJvxSRep0;j#vU^&Lfv)b8y>p)InDul?JJ9f$fXb4L{JfZgN~grU?BL4c RlGI$?+(aN%G?|6z3IL6nYWx5I diff --git a/banksystem/__pycache__/check.cpython-38.pyc b/banksystem/__pycache__/check.cpython-38.pyc index 5920825dbbdb23fc356dc69946b5e261a3b10465..dcf99b663a85b5d854e7d13ec651960197b44e27 100644 GIT binary patch literal 3347 zcmaJ@-ESP#6~A+5W_Pk)n>3g-Dg7|02(}8LsR9vI6p$RYjTEgSY$UXDwb|^Qg!RX) z_s$I9YF#<8lMpp7u1bKSJj7K91{6#I$>1c-AJG3`UgKGNAF4d@!V|x9@6IOPIGxel zd*^3p`ZI73qLR8^N*tttjL5R_#7)5!W0&2E^LuP zZHlyTP+MY~$e^}GkI14Ct?TcZGT|mQPDrgM8BJvHH$ssu_2b* z8ScR`nfT(_c;WN4)pP6bEv>Eot@YW(jpftv!rb~N^R1Z+t;O%wKbnir-)dg^GE?DL zkUSt;DPDREp8&>bu$^qym^K|L)Dxk|ZC_W1U^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3*Z$rmmr-EGl8pz5yu~xG5`a~cc+=OD26M6$tOBR?Ny?VDPhlo!lf)nsDPk) zgbaD0CRLk=BwmDG@?6|N$m%^L4%bo0sz!D)BR?HR`=n!^Yw9-FU76)!;_a00ppq}N z10{hud?a!(M1`TP}*5+TgHt#n6xwiAcQsbQu8<#HBZ+%*q7xkyzjEZUD zZ5@u&!6I!5Vj`ZPY6w*>shr-M2jo?RMj(?>T=WwWL8*y;A)!Pl%Ef8d7#EKd2|++r z@&?q`gp_lpLgqS$Rdo;2>BeKBrnVo&)Z=)={=&d+Lyk4Kw}Fie7#Z!mMk{aMQSZi*&g052a6ei+l|H zY4XZO6h467?_xG*k=Kt`iZe=4WV%i*AgPg06VVkct6PgqXGxr!+`pC1Lc(mikA4>% z+#d7!AeqmXE8L%@eosDM^$W9VMNoDTlqr;nC_zbMDzi!hlb9k!6+gjVwTY&sSs@_Ak3Y no6~mDQ_P7@JVli}S*wzat(TM@UnW6Z3i4*6|99*#j;Q??ozQ-c diff --git a/banksystem/__pycache__/readAppendCard.cpython-38.pyc b/banksystem/__pycache__/readAppendCard.cpython-38.pyc index 6fa00e3405df197ddc7d59c7d14a2d8c30d93e78..a84c9fb516d2bf67e8df98defa225843406a9c30 100644 GIT binary patch delta 210 zcmeAWdoRov%FD~e00jA`-X?!ypU5Y}=rK{-gOw?mL6dW0-!3-RFLWjW7v?kHS!QN;=5FF7m)RQ|OEEkbmw&3) zs+)NT``v}o17D}Uva**b9em`boOm4uO!Hk9rMrheJXwv6ey42_Het_xfw%T2BP7EK2ur{(nA7CVsVfO9gOQ|=68Vd>@atCg}h@<*$Gx3OzE7=^3F*DneKcRT*n zNFvYB#Ac2l2r~rwqFE-;QX<#n(G5~@y`I$c7OrrhOcD>3d32wfB{f7y>CWf)Lu~`q xY=c(GU>qcupg@9IqXbo{P)el|`S#4uOS&{q?3Mp)JcBX~N`zrJ8BVD{!GG*FV)_68 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