I
编号
II
摘 要
随着人民生活水平的大幅提高,我国居民的水果消费量也呈现出快速增加的
态势,这种增加不仅仅体现在绝对总量的增加,更体现在品种的多样化、品质的
提升等方面。在“网络时代”的现在,众多行业的互联网化不可避免,水果网上销
售也成为近年来大众购买水果的主要平台,各大水果网上销售平台都有其自身的
水果销售系统,用来管理水果信息以及购买水果,不仅给消费者提供了便捷的购
买平台,也提高了水果销售商的工作效率,实现了远程购物、销售的需求。
本文基于 python 平台开发了一款小型水果销售系统。系统采用的编译语言
是 python 语言的 Django 框架,采用 Mysql 数据库来建立数据之间的转换,系统
架构采用 B/S 架构,这款水果销售系统可以满足水果管理以及水果销售的基本功
能,简化了水果销售流程,提高了水果销售的工作效率。
论文主要介绍了几种采用的技术,做好理论基础,对可行性进行了论证,并
进行了功能和非功能性需求分析,从设计角度做了概要设计和数据库设计,最后
根据实际方案进行系统开发,并进行了测试,测试结果显示系统功能可用,能够
满足用户的基本需求,完成了水果销售系统的开发实现。
关键词:水果销售系统;python;设计;测试
III
Abstract
With the substantial improvement of people's living standards, fruit consumption
of Chinese residents also shows a rapid increase, which is not only reflected in the
increase of the absolute total, but also in the diversification of varieties and the
improvement of quality. In the "Internet era", the Internet of many industries is
inevitable, and online fruit sales have become the main platform for the public to buy
fruit in recent years. Each major online fruit sales platform has its own fruit sales
system, which is used to manage fruit information and buy fruit. It not only provides
consumers with a convenient purchase platform, but also improves the work
efficiency of fruit sellers. Realize the demand of remote shopping and sales.
This paper developed a small fruit sales system based on python platform. The
compilation language of the system is python language Django framework, using
Mysql database to establish the conversion between data, the system architecture uses
B/S architecture, this fruit sales system can meet the basic functions of fruit
management and fruit sales, simplify the fruit sales process, improve the efficiency of
fruit sales.
This paper mainly introduces several adopted technologies, makes a good
theoretical basis, demonstrates the feasibility, analyzes the functional and
non-functional requirements, makes a summary design and database design from the
design point of view, and finally carries out the system development according to the
actual scheme, and carries out the test, the test results show that the system function is
available and can meet the basic needs of users. Completed the development and
implementation of fruit sales system.
Keywords: Fruit marketing system;python;design;test
I
目 录
摘 要...........................................................................................................................II
Abstract .....................................................................................................................III
第 1 章 引 言 ...........................................................................................................- 1 -
1.1 研究背景及意义 ........................................................................................- 1 -
1.2 国内外研究现状 ........................................................................................- 1 -
1.3 研究内容 ....................................................................................................- 2 -
第 2 章 开发技术介绍 .............................................................................................- 4 -
2.1 Django 技术介绍 ........................................................................................- 4 -
2.2 Mysql 数据库介绍 ......................................................................................- 4 -
2.3 B/S 架构 ......................................................................................................- 4 -
2.4 本章小结 ....................................................................................................- 5 -
第 3 章 系统需求分析 .............................................................................................- 6 -
3.1 可行性分析 ................................................................................................- 6 -
3.1.1 经济可行性 ...................................................................................- 6 -
3.1.2 技术可行性 ...................................................................................- 6 -
3.1.3 运行可行性 ...................................................................................- 6 -
3.2 功能性需求分析 ........................................................................................- 6 -
3.3 非功能性需求分析 ....................................................................................- 8 -
3.4 本章小结 ....................................................................................................- 8 -
第 4 章 系统设计 .....................................................................................................- 9 -
4.1 概要设计 ..................................................................................................- 9 -
4.2 数据库设计 ............................................................................................- 10 -
4.2.1 数据库 E/R 图 .............................................................................- 10 -
4.2.2 数据库表设计 .............................................................................- 11 -
4.3 本章小结 ................................................................................................- 13 -
第 5 章 系统开发及测试 .......................................................................................- 14 -
5.1 登录界面设计及实现 ............................................................................- 14 -
5.2 系统功能模块设计及实现 ....................................................................- 16 -
5.3 系统测试 ................................................................................................- 16 -
5.4 本章小结 ................................................................................................- 19 -
第 6 章 总结 ...........................................................................................................- 20 -
参考文献 .................................................................................................................- 21 -