• 大小: 1.96MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-04
  • 语言: Python
  • 标签: ATM  -购物  

资源简介

修改了2天,总算是可以放一放了。ATM 模拟程序说明:系统功能模块(1 进入商城,2登录系统,3信用卡中心,4后台管理,5退出系统)

资源截图

代码片段和文件信息

#!/usr/bin/env python
# -*- encoding:utf-8 -*-

import os
import sys
from datetime import date datetime
from conf import template errorcode
from conf import settings
from modules import shopping common
from dbhelper import dbapi
from modules.users import Users
from modules.creditcard import CreditCard
from modules import report


def doshopping(userobj):
    “““
    购物商城模块进行购物部分的所有处理
    :param userobj:  一个用户对象如果用户未登录,在支付模块会通过装饰器来登录
    :return:
    “““
    # 实例化商城
    shoppobj = shopping.Shopping()
    # 选择商品类型
    exitflag = False
    while not exitflag:
        # 开始菜单
        print(shoppobj.welcome_menu)
        shop_cassify_id = input(“请选择商品分类编号[1-3]: “).strip().lower()
        if not shop_cassify_id: continue
        if shop_cassify_id == “0“:
     

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-03-22 22:26  CreditCard\
     目录           0  2018-03-22 12:01  CreditCard\.idea\
     文件         467  2018-03-22 10:16  CreditCard\.idea\CreditCard.iml
     目录           0  2018-03-22 22:26  CreditCard\.idea\inspectionProfiles\
     文件         185  2018-03-22 10:15  CreditCard\.idea\misc.xml
     文件         272  2018-03-22 10:15  CreditCard\.idea\modules.xml
     文件       18409  2018-03-22 12:01  CreditCard\.idea\workspace.xml
     目录           0  2018-03-22 11:00  CreditCard\conf\
     文件          23  2016-02-19 18:09  CreditCard\conf\__init__.py
     目录           0  2018-03-22 11:00  CreditCard\conf\__pycache__\
     文件         132  2018-03-22 11:00  CreditCard\conf\__pycache__\__init__.cpython-35.pyc
     文件         351  2018-03-22 11:00  CreditCard\conf\__pycache__\errorcode.cpython-35.pyc
     文件         693  2018-03-22 11:00  CreditCard\conf\__pycache__\settings.cpython-35.pyc
     文件        5490  2018-03-22 11:00  CreditCard\conf\__pycache__\template.cpython-35.pyc
     文件         422  2016-02-19 18:09  CreditCard\conf\errorcode.py
     文件        1043  2016-02-19 18:09  CreditCard\conf\settings.py
     文件        5936  2016-02-19 18:09  CreditCard\conf\template.py
     文件       22493  2018-03-22 21:48  CreditCard\credit_card.py
     目录           0  2018-03-22 11:09  CreditCard\database\
     文件         453  2018-03-22 21:46  CreditCard\database\creditcard.db
     文件        5129  2018-03-22 11:09  CreditCard\database\init_db.py
     文件        2823  2016-02-19 18:09  CreditCard\database\shoppingmark.db
     文件         523  2016-02-19 18:09  CreditCard\database\users.db
     目录           0  2018-03-22 11:00  CreditCard\dbhelper\
     文件          23  2016-02-19 18:09  CreditCard\dbhelper\__init__.py
     目录           0  2018-03-22 11:00  CreditCard\dbhelper\__pycache__\
     文件         136  2018-03-22 11:00  CreditCard\dbhelper\__pycache__\__init__.cpython-35.pyc
     文件        4520  2018-03-22 11:00  CreditCard\dbhelper\__pycache__\dbapi.cpython-35.pyc
     文件        4147  2016-02-19 18:09  CreditCard\dbhelper\dbapi.py
     目录           0  2018-03-17 14:33  CreditCard\logs\
     文件          23  2016-02-19 18:09  CreditCard\logs\__init__.py
............此处省略21个文件信息

评论

共有 条评论