Program structure: DAY5-ATM/├──README├──ATM #ATM主程目录 │ ├──__init__.py│ ├──bin #ATM Execute file directory │  │&NB sp; ├──__init__.py│ │ ├──atm.py #ATM Execution procedure │ │ └──manage.py #ATM tube │ ├──conf #配置文件 │ │ ├──__init__.py│ │ └── Not implemented Settings.py│ ├──core #主要程序逻辑都 in this directory │ │ ├──__init__.py│ │ ├──accounts.py #用于从文件里加载和存储账户数据 │ │ ├──auth.py #用户认证模块 │ │ ├─ ─db_handler.py #数据库连接引擎 │ │ ├──logger.py #日志记录模块 │ │ ├──main.py #主逻辑交互程序 │ │ └──transaction.py #记账 \ also money \ Withdraw money and other operations related to the account amount in this │ ├──db #用户数据存储的地方 │ │ ├──__init__.py│ │ ├──account_sample.py #生成一个初始的账户数据, save this data as a With this account ID is the file name, put in the accounts directory on the line, the program will go to find here │ &NBsp │ └──accounts #存各个用户的账户数据, a user of a file │ │ └──1234.json #一个用户账户示例文件 │ └── Log #日志目录 │ ├──__init__.py│ ├──access.log #用户访问和操作的相关日志 │ └──transaction S.log #所有的交易日志 └──shopping_mall #电子商城程序 to be implemented separately └──__init__.py
Python Program Structure