Python: real banking system (b)

The section is switched off is administrator's job -

In this section we achieve the ATM machine in the dry matter

 

Explain here, in this section only to build a framework.

What do each piece of content in the end, we repeat that in the next section.

 

"""

userinfo
网络	用户信息表; 用户表; 用户信息; 用户登录表; 用户信息类;
[例句]Internal error: unable to update the userinfo table with your email address and full name.
内部错误:无法用您的邮件地址和完整名称更新userinfo表。

draw money
英 [drɔː ˈmʌni]   美 [drɔː ˈmʌni]
提款,取款

deposit
英 [dɪˈpɒzɪt]   美 [dɪˈpɑːzɪt]
n.
订金;订钱;押金;存款
v.
放下;放置;使沉积;使沉淀;使淤积;将(钱)存入银行;存储
第三人称单数: deposits复数: deposits现在分词: depositing过去式: deposited过去分词: deposited

transfer accounts
英 [trænsˈfɜː(r) əˈkaʊnts]   美 [trænsˈfɜːr əˈkaʊnts]
转账




"""


class ATM(object):
    # 开户
    def create_user(self):
        pass

    # 查询
    def search_userInfo(self):
        pass

    # 取款
    def draw_money(self):
        pass

    # 存款
    def deposit(self):
        pass

    # 转账
    def transfer_accounts(self):
        pass

    # 改密
    def change_pwd(self):
        pass

    # 锁定
    def lock_user(self):
        pass

    # 解锁
    def unlock_user(self):
        pass

    # 补卡
    def new_card(self):
        pass

    # 销户
    def kill_user(self):
        pass

Follow the variable naming nomenclature small hump, I like this underscore way, we can decide for himself.

Published 52 original articles · won praise 34 · views 2605

Guess you like

Origin blog.csdn.net/weixin_38114487/article/details/104096115