Python Program Structure

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.