登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 计算机类 > 计算机科学与技术 > 正文

基于python实现火车票抢票工具

 2023-02-05 11:02  

论文总字数:14144字

摘 要

依靠手工操作的传统火车站售票工作存在如下两方面问题:一方面是,在节假日高峰期期间,火车站工作人员的数量难以满足我国大量人口需求服务的要求,会造成大量的人流量堵塞,干扰正常秩序;另一方面是,在传统的火车站的经营模式下,不利于统计并登记乘客信息。可见选择开发火车站抢票工具是有意义的。该论文简单介绍了火车票抢票工具的发展,同时论述了火车票抢票工具的经济可行性、技术可行性和操作可行性等方面。根据线上的资料显示并分析,确定了火车票抢票工具的功能需求;分析了该设计的硬件需求、软件需求,功能需求。论文还完成了该设计的软件设计部分的结构、系统的整体流程以及相关程序流程的设计。运用Python以及Redis等技术去实现所设计的火车票抢票工具,所完成的设计实现了需求分析中的用户登录、查询、抢票等多方面功能,能基本上满足线上火车票抢票的要求。

论文还介绍了该设计的测试与维护,给出了部分典型功能的源代码,如登录、查询与抢票。

关键词:火车票抢票;Python;Redis

Train ticket grab tool based on Python

Abstract

There are two problems in the traditional ticket sales of railway stations that rely on manual operation. First, during the peak period of holidays, the number of railway station staff is difficult to meet the service requirements of a large population in China, which will cause a large number of traffic jams and disturb the normal order. Second, under the traditional railway station operation mode, it is not conducive to statistics and registration of passenger information. It can be seen that it is meaningful to choose and develop the train station ticket grabbing tool. This paper briefly introduces the development of train ticket grabbing tools, and discusses the economic feasibility, technical feasibility and operational feasibility of train ticket grabbing tools. According to the online data display and analysis, the functional requirements of the train ticket snatching tool are determined. The hardware requirements, software requirements and functional requirements of the design are analyzed. The paper also completed the structure of the software design part of the design, the overall process of the system and the design of related program processes. Python and Redis technologies are used to implement the designed train ticket snatching tool. The completed design realizes the user login, query, ticket snatching and other functions in demand analysis, and can basically meet the requirements of online train ticket snatching. The paper also introduces the test and maintenance of the design, and gives the source code of some typical functions, such as login, inquiry and ticket grabbing.

Keywords: train ticket grab ;Python; Redis

目录

摘 要 I

Abstract II

第一章 绪论 1

1.1 选题背景 1

1.1.1 系统开发背景 1

1.1.2 国内现状 1

1.1.2 国外现状 1

1.2选题意义 1

1.3论文组织结构 2

第二章 系统开发环境及相关技术 3

2.1系统开发环境 3

2.2 Python语言 3

2.3 PyCharm 3

2.4 Requests库 3

2.5 click 3

2.6 beautifulsoup库 4

2.7 six库 4

2.8 urllib3库 4

2.9 Flask web 应用框架 4

2.10 Redis缓存技术 4

2.11分布式存储技术 4

第三章 需求分析 5

3.1 系统需求分析 5

3.2 可行性需求分析 5

3.2.1技术可行性 5

3.2.2经济可行性 5

3.2.3法律可行性 5

3.3性能需求分析 5

3.3.1 硬件性能需求 5

3.3.2 软件性能需求 5

第四章 概要设计 6

4.1总体结构图 6

4.2系统模块功能 7

4.2.1登录模块 7

4.2.2查询模块 8

4.2.3抢票模块 9

第五章 详细设计 10

5.1程序结构图 10

第六章 系统功能的具体实现 15

6.1系统开发环境部署 15

6.2功能实现 15

6.2.1登录功能 15

6.2.2添加功能: 16

6.2.3查询功能 18

6.2.4 web功能 19

第七章 系统测试 22

7.1软件测试目的 22

7.2登录功能测试 22

7.3查询功能测试 25

7.4抢票功能测试 25

7.5个人信息测试 27

7.6 出票是否成功测试 27

7.7 多用户测试 28

7.8 单元测试 28

第八章 总结 31

致谢 32

参考文献(References) 33

第一章 绪论

1.1 选题背景

1.1.1 系统开发背景

CNNIC曾发布过第43次《中国互联网络发展状况统计报告》,截至到2018年的12月,中国网民的规模高达8.29亿,且互联网的使用率高达59.6%。而且截至2018年的12月,在线预定用户规模达4.10亿,相比较2017年增长大约3423万,它的增长率为9.1%;其中网上预定火车票的网民比例是42.7%。在此背景之下,不难发现多年之前,网络还只是一个概念性的理念。在它的极速发展之下,互联网逐渐渗透到大家的日常生活中,在人们购买火车票方式上明显体现了出来。

在互联网盛行之前,人们只能排队去火车站以及车站购买票。目前,越来越多人通过互联网购买火车票,尤其是在节假日高峰出行的时候,为了避免高峰出行时带来的堵车,大家会不约而同的选择火车出行,由于出行时间段比较密集,因此火车票的紧缺是常常会发生的事情。在这时,火车票抢票工具就大大发挥了它抢票的作用,有效的解决了时间与抢票之间的问题,给大家的生活带来很大的便携。因此,火车票抢票工具是当代社会发展所需要的。

1.1.2 国内现状

根据《2018年春运大数据》发布内容,不难发现选择铁路出行的人流量持续增长,相较于去年增长10%,且面对如此大的客流量,热点线路还是呈现出一票难求的状态。其中,“广州,北京,上海,深圳,杭州,福州,宁波,温州,厦门,武汉”车票最难买。故火车票抢票工具不但能缓解订票高峰时期带来的买票压力,而且为用户节省时间,更高效便捷的出行。

1.1.2 国外现状

网络技术的迅速发展为铁路带来了全新的改变。早在90年代,美国联合铁路公司就率先在国内推出了网上订票系统,乘客只需要在网络上输入自己的身份信息以及有效日期,就可以直接购买车票。出票方式有电子车票、车站取票、送票上门等多种方式。这足以体现网上购票给出行的人们带来了很大的便携。购买者足不出户,就能够通过电脑查询火车的班次、售票价格以及车票的剩余票数情况,并直接订购车票,免去了奔波的劳累以及时间的无谓消耗。

1.2选题意义

火车票抢票工具是当前新经济时代孕育的产物,符合如今出行高峰期于一票难求的现状。因此开发本系统具有重要的实际意义:

剩余内容已隐藏,请支付后下载全文,论文总字数:14144字

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图