Python Course Design Note 45 of 52

Stage 2 Project

E-mall

# Requirements:
    1 This is a credit card management program
    2 The user shops with a credit card; use functions and follow software development conventions
    3 Usernames and passwords are stored in files; support multi-user login, using json
    4 When the program starts, first log in or register, save the information to a file, and write logs
    5 For user login, if the password is entered wrong three times, the account is locked and can no longer log in
    6 The user can withdraw cash, make purchases, repay, and raise the credit limit
    7 Allow the user to buy products by product number: the user selects a product, the balance is checked, the amount is deducted if it is sufficient, otherwise a prompt is shown; all user actions must be logged
    8 The user can exit at any time; on exit, print the purchased products and the balance

Software development conventions: Packaging Python Projectspackaging.python.org

Each project is an independent project folder, which contains:

1 The startup file `start.py` is placed in the `bin` directory
2 The configuration file `settings.py` is placed in the `conf` directory
3 The core logic file `src.py` is placed in the `core` directory
4 The data file `db.json` is placed in the `db` directory
5 The common utilities file `common.py` is placed in the `lib` directory
6 The log file `access.log` is placed in the `log` directory
7 The usage instructions file `Readme` is placed in the top-level directory

Submit the project assignment as a GitHub link or a Baidu Netdisk link